Part 06 / Topic 6 of 7
Overfitting and underfitting
- Overfitting means great scores on training data and poor scores on new data — the model memorised noise. The signature is a wide gap, such as 0.99 on train and 0.70 on test.
- Underfitting means poor scores on both — the model is too simple to capture the signal.
Between them lies the bias–variance trade-off: simple models are biased (systematically miss structure), complex models have variance (track noise). You saw both in Part 5's depth sweep: depth 2 underfits digits (test 0.325), unlimited depth overfits (train 1.0, test 0.878), depth 8 sits between.
🧪 Quick quiz
- A model scores 99% on training data and 70% on test. What is this?
Show the answer
Overfitting. Reduce complexity, add regularization, or get more data.
Done here? The practice set for Part 6 — 4 exercises with solutions — is on the part page.