Overfitting
What is Overfitting?
In one sentence: Overfitting is when a model learns its training examples too closely, including the noise, so it does badly on new data.
It is like a student who memorizes the exact practice questions instead of learning the idea. They ace the practice test but fail when the questions change. An overfit model scores great on training data but makes silly mistakes on anything new.
What does Overfitting look like?
A model that learned "all dogs are on green grass" because every training photo had grass is overfitting.
Why does Overfitting matter?
Spotting and preventing overfitting is one of the most important skills in building AI.
Overfitting vs. Underfitting
An overfitting model memorizes training quirks and stumbles on new data; an underfitting model is too simple or under-trained to capture the pattern even on training data.
| Dimension | Overfitting | Underfitting |
|---|---|---|
| Training score | Very high (memorized) | Poor |
| Test / real-world score | Drops sharply on unseen examples | Also poor |
| Common fix | More data, regularization, early stopping | Bigger model, better features, longer training |
Last updated · Fact-checked by The AI Math
Linking to this page from a lesson or article? <a href="https://getaimath.com/dictionary/overfitting/">Overfitting, explained simply</a> (The AI Math Dictionary)