Week 2 Lecture 1
Non-linear Transformations
is a non-linear transformation, , where ( just means, that this isnβt the of the original input space)
Where is called feature space.
Overfitting and regularization
In the underdetermined case () linear regression always finds a model with zero empirical risk.
Even if and are independent!!!
Overfitting occurs if the model faithfully reflects idiosyncrasies of the training data rather than the underlying process that has generated the data.
Letβs assume we use a polynomial non-linearity. In this case, weβd need to figure out what degree to use. We can find it using cross-validation.
Two-norm regularization
We can restrict out hypothesis with a parameter , such that (see presentation for proof)
This can restrict how steep our hypothesis can be.
But doing optimization under a constraint gets hard. We can instead add another term to the empirical risk: ( is a parameter similar to )
Adding this still gets us an analytical solution:
If we set then the regularization term disappears, and the whole formula becomes the original regularization formula.
If , then the value under the matrix inverse becomes really large, thus its inverse converges to 0. I.e. the becomes zero as well.
Similarly, rather than two-norm, one can use one-norm for regularization. This method is called LASSO. Itβs used, since one-norm regularization causes sparser models.
BUT in the real world, things are somewhat different. If we take a heavily overparameterized model, the errors suddenly start getting better (double descent). This is because in the overparameterized case, our goal (see: previous lecture) was to find the weights that go through every datapoint, while having the smallest weight norm. I.e. it does implicit two-norm regularization.