aNet.ai
Machine Learning/Learning path
0day streak0XP · Lv 1
← 3. Learning & Generalization
Lesson 4 of 11 8 min · 132 words

Overfitting

Memorising noise: low training error, high test error.

Overfitting happens when a model learns the noise and quirks of the training data instead of the underlying pattern. Symptoms: very low training error, much higher validation or test error.

It is most likely when the model is very flexible (a high-degree polynomial, a deep tree, a large network), the dataset is small, or training runs for too long. Imagine fitting a degree-15 polynomial through 10 noisy points — it passes through every point but swings wildly between them.

On a training curve, overfitting shows as training loss still falling while validation loss starts rising. The point where validation loss is lowest is where you would want to stop (early stopping).

Formula to remember

Bias–variance decomposition

Expected error = squared bias + variance + irreducible noise.

Quick check · +5 XP

High bias and low variance usually describes…

Practice this topic
Saved in this browser as you type.
aNet.ai · Introduction to Machine Learning · NewUU course outlineProgress saved in this browser