|
|
\[ R(\mathbf{ w}) = \int L(y, x, \mathbf{ w}) \mathbb{P}(y, x) \text{d}y \text{d}x. \]
Sample based approximation: replace true expectation with sum over samples. \[ \int f(z) p(z) \text{d}z\approx \frac{1}{s}\sum_{i=1}^s f(z_i). \]
Allows us to approximate true integral with a sum \[ R(\mathbf{ w}) \approx \frac{1}{n}\sum_{i=1}^{n} L(y_i, x_i, \mathbf{ w}). \]
|
|
The next thing we’ll do is consider a quadratic fit. We will compute the training error for the two fits.
fold
num basis
num basis
num basis
num basis
num basis
num basis
fold
num basis
num basis
num basis
num basis
num basis
num basis