Model Evaluation and Generalization
Understand validation, testing, overfitting and generalization as separate questions about model evidence.
A score on training data answers a narrow question. Goodfellow, Bengio, and Courville distinguish training error from generalization error: the latter concerns expected performance on previously unseen examples from the relevant data distribution.[1] This article explains why that distinction matters in practice.
Why Training Scores Are Not Enough
A low training error means that a model's predictions fit the training examples under the chosen measure. It does not, on its own, show that the model will perform well on new examples. The scikit-learn guide notes that fitting and evaluating on the same data can reward a model that repeats what it has seen, without showing that it can predict useful results for unseen samples.[2]
This is a methodological caution, not a claim about every model. The cited sources discuss particular workflows and examples; they do not establish universal rules for all learning systems.
Validation, Testing and Held-Out Evidence
In a common supervised workflow, the data has different roles. The scikit-learn guide describes splitting data so that some of it is held out from fitting, and explains cross-validation as a way to evaluate estimator performance.[2] Goodfellow and colleagues describe validation sets as a way to assess hyperparameter choices.[1]
Validation supplies evidence used while choosing model settings. Testing evaluates a chosen model on data held apart from fitting. In the standard workflow described by scikit-learn, the test data should not be used as though it were another training set: repeatedly making decisions based on test results risks adapting decisions to that test set and weakening its value as an independent evaluation.[2]
Overfitting and Generalization
Overfitting describes a mismatch in which a model fits training data well but performs less well on held-out or new data. The scikit-learn validation-curve discussion gives a polynomial-regression example in which a model can fit training points very closely while doing worse at capturing the underlying function.[3]
Generalization concerns performance on previously unseen examples in the relevant setting. It is a property to evaluate, not a guarantee from optimization. These concepts are related but not interchangeable, and a gap between scores can have different causes; one split is not a complete picture.
Reading Scores Carefully
Even a separated test set provides evidence only about the data and task represented by its evaluation. As a methodological caution from HAC, a test set that poorly represents the intended task may provide limited evidence about performance on that task. A limited evaluation cannot prove universal reliability.
The practical question is what evidence supports a claim about a model. Validation and testing help when their roles remain distinct, and claims about learning, memorization, and generalization should remain tied to the model, task, data, and evaluation that support them.
References
- Goodfellow, I., Bengio, Y., & Courville, A. (2016). Deep Learning. MIT Press, Chapter 5, "Machine Learning Basics." Official chapter text.
- scikit-learn developers. "Cross-validation: evaluating estimator performance." scikit-learn 1.8.0 User Guide, §3.1. Documentation (accessed 2026-11-24).
- scikit-learn developers. "Validation curves: plotting scores to evaluate models." scikit-learn 1.8.0 User Guide, §3.5. Documentation (accessed 2026-11-24).
Continue exploring
Explore the broader topics connected to this article.
Recommended reading
Continue with these related articles.
Related content
Continue exploring related ideas and concepts.
machine learning
Supervised Learning Fundamentals
Learn how supervised learning uses labelled examples, a model and an objective to make predictions about new inputs.
Published Nov 24, 2026 · 10 min read
Read articlemachine learning
How AI Models Learn
Explore the fundamental ideas behind training, data, optimization, and model behavior.
Published Aug 31, 2026 · 9 min read
Read article
Continue reading
Continue exploring Hidden AI Concepts.
Explainers
What Happens Inside an AI Model?
Understand the main ideas behind inference, representations, and model computation.
Published Aug 31, 2026 · 8 min read
Continue to articleRecent editorial content
Discover more of the latest editorial content.