That gap is the classic sign of overfitting: the model has memorised the training examples, including noise, instead of learning the general pattern, so it fails on new data. The opposite problem, underfitting, is when the model is too simple to learn the pattern at all.
Ways to reduce overfitting:
Get more (and more varied) data.
Simplify the model: fewer features, shallower trees, fewer layers.
Regularisation (L1, L2, dropout) to penalise over-complex models.
Cross-validation to estimate performance more reliably.
Early stopping: stop training when validation error starts rising.
Data augmentation for images and text.
Always keep a separate test set that you touch only at the end. Also check for data leakage, where information from the test data accidentally reaches training, which gives falsely high scores. Plot training and validation scores together; the point where they split apart tells you when overfitting begins.
Markdown for AI
A clean, structured version of this page for AI assistants and LLMs.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
That gap is the classic sign of overfitting: the model has memorised the training examples, including noise, instead of learning the general pattern, so it fails on new data. The opposite problem, underfitting, is when the model is too simple to learn the pattern at all.
Ways to reduce overfitting:
Always keep a separate test set that you touch only at the end. Also check for data leakage, where information from the test data accidentally reaches training, which gives falsely high scores. Plot training and validation scores together; the point where they split apart tells you when overfitting begins.