AI & DataIntermediate
Overfitting
PronunciationOH-ver-fit-ing
Definition
A modeling error that occurs when a machine learning model learns the training data too well, including its noise and outliers, causing it to perform poorly on new, unseen data.
Where you hear it
In machine learning pipeline discussions, model training evaluations, and data science code reviews.
Examples
The model shows high accuracy on the training set, but its performance drops significantly during testing due to overfitting.
We need to add regularization techniques to prevent the neural network from overfitting.
The model memorised the training photos and fails on new ones, which is overfitting.
Common mistake
Believing that achieving a near-zero error rate on training data means the model is ready for production.
Don't confuse with
Overfitting vs. underfitting: Overfitting occurs when a model captures noise instead of patterns, whereas underfitting happens when a model is too simple to capture the underlying structure of the data.
Say it at work
- In a meeting or chat
I think the model is overfitting because the training loss is extremely low but the validation accuracy is stalling.
- In an email or ticket
Please review the training logs, as the current metrics suggest the model is overfitting on the training set.