Chapter 4 of 10All chapters
Chapter 4 of 10
Underfitting and overfitting
Two ways to be wrong.
The balance
An underfitted model is too simple and does poorly everywhere. An overfitted one memorises the training data, scoring well there and badly on anything new.
- A large gap between training and test scores means overfitting.
- More data, simpler models and regularisation all pull against it.
Complexity
Complexity should be justified by measured improvement on held-out data. Starting simple gives a baseline that surprisingly often survives.