Regularization
A method to deal with
From Overfitting
Go to text →
Overfitting
The model fits the training set too perfectly and therefore has poor performance on unknown data.
Possible causes:
- The chosen model is much more complex than the relationship between independent and dependent variables. Thus the
model tries to learn to fit for example random fluctuations of an originally mostly linear dataset.
- Fitting a high order polynomial to linear data
- The training set and the validation set / real-world data come from a different distribution (for instance too much
time passed since the collection of the training data)
- You can use Adversarial Validation to test whether you can easily distinguish between training and test data
Intuition: Penalize high values of model parameters , to get a "simpler model"
Add a regularization term to the cost function
New cost function will be:
- is the regularization parameter
- Too high value will result in underfitting, since it will just eliminate all featurs and try to fit to a horizontal line.
Note: is not penalized traditionally but even if it were it would not make much of a difference