AI & ML
Generalization and Model Selection
Part of Foundations, level 1. About 11 hours of study across the topics below.
1Diagnosis
- Train, Validation, and Test ErrorsThree numbers, three jobs: measuring fit, selecting, and honestly reporting. 1–2 h
- Overfitting and UnderfittingThe gap you can see: flexibility drives train and test errors apart. 1–2 h
- Bias-Variance Trade-offError, decomposed: systematic miss plus jitter, and why both cannot shrink together. 1–2 h
- Model CapacityWhat flexibility is made of: parameters, degrees of freedom, and function-class size. 1–2 h
2Control
- Regularization: RidgePaying for size: the lambda penalty shrinks weights and calms the fit. 1–2 h
- Regularization: Lasso and SparsityL1 geometry selects: corners zero out weights where circles only shrink them. 1–2 h
- Early StoppingTime as regularization: halting the fit where validation bottoms out. 1–2 h
- Data AugmentationEncoding invariances by transforming training examples: more effective data without more labels. 1–2 h
- Ensembles: Bagging and AveragingAveraging many high-variance models reduces variance; bootstrap resampling makes the models different. 1–2 h
