The model that learned the exam answers
Overfitting explains why a perfect training score can disappoint in practice.

Learning patterns or memorizing details
Overfitting occurs when a model captures peculiarities of its training examples that do not carry over to new observations. It may fit noise, accidental associations or highly specific cases. Training performance can keep improving even as performance on unseen data stops improving. The important question is not whether the model remembers its lessons, but whether those lessons transfer.
An event-planning illustration
Suppose a planner predicts attendance from a small archive of dinners. A very flexible model might learn that a particular room number predicts cancellations because one event in that room coincided with a storm. That coincidence could improve the historical fit. It would not necessarily help with the next dinner, especially after the venue renumbers its rooms.
Build a genuine test
Hold back examples that reflect the intended deployment. If future events are the target, a time-based split may be more informative than mixing records randomly. Related observations should not appear on both sides of the boundary when that makes the task artificially easy. Validation guides development; a final test estimates performance after the main choices have been made.
Prefer explanations that survive
Look for gaps between training and validation results, but also inspect the stories behind successful predictions. Simplifying the model, regularizing it or adding representative data can help, depending on the cause. More data is not a universal cure if it repeats the same narrow conditions. An operationally useful model should remain credible when superficial details change and should expose the situations in which its learned relationships no longer hold. Recording why each input was included can make suspicious shortcuts easier to spot when a seemingly successful prediction depends on a detail unrelated to attendance.
Sources & further reading
developers.google.com — overfitting ↗
AI-assisted editorial explainer. Sources are provided for verification.
Continue reading
The quiet power of a straight line ↗
Probability is not a verdict ↗