Regularisation
Adding a penalty for model complexity, usually large weights, to reduce overfitting.
Regularisation changes the training objective from "fit the data" to "fit the data without extreme parameters". The most common forms add a penalty on the weights:
L2 shrinks all weights smoothly; L1 pushes some exactly to zero, selecting features. The strength is chosen by cross-validation. Neural networks also use dropout, weight decay, early stopping and data augmentation as regularisers.
See it in action
- Ridge, lasso and elastic netRegularised regression: shrink weights to fight overfitting, and let lasso select features.
- Logistic regressionThe workhorse classifier: a linear score turned into a calibrated probability by the sigmoid.
- Neural networks and backpropagationMulti-layer perceptrons: learned features, activations, the chain rule, and training tricks.