A model scores 99% on training data and 72% on the test set. What does this show about generalization?
- Exam domain
- Machine Learning With RAPIDS16% of the exam
- Difficulty
- Medium
- In this mock
- 8 questions on this domainPractise this domain
Why the exam asks this
Machine Learning With RAPIDS (16% of the exam)
Objective in the exam guide: Model evaluation, comparison, and generalization assessment
Generalization assessment is named.
Why C is the answer
It overfits and generalizes poorly
A large gap between training and test performance means the model memorized training data and does not generalize.
Remember: A large train-test gap means overfitting.
How it works
Generalization is judged on held-out data. Compare models on the same splits.
In detail
- Big train-test gap: overfitting.
- Both low: underfitting.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. The test set must be wrongWrong
Blaming the test set skips diagnosis.
B. The model is underfittingWrong
Underfitting shows low training scores.
C. It overfits and generalizes poorlyRight
A large train-test gap means overfitting.
D. It generalizes very well, because the training score is what matters most in practiceWrongMost tempting
Training scores do not show generalization.
Why it tempts: A 99% score is attractive.
Use case
An illustrative scenario, not a real incident.
Illustrative: limiting tree depth narrows the gap to 88% train, 85% test.
See it in different ways
stateDiagram-v2 state "Train high, test low" as s0 state "Overfitting" as s1 state "Train low, test low" as s2 state "Underfitting" as s3 state "Train high, test high" as s4 state "Good fit" as s5 [*] --> s0 s0 --> s1 s2 --> s3 s4 --> s5 s1 --> [*] s3 --> [*] s5 --> [*]
How to read this chart
- It starts at "Train high, test low".
- From "Train high, test low", it moves to "Overfitting".
- From "Train low, test low", it moves to "Underfitting".
- From "Train high, test high", it moves to "Good fit".
- It ends at "Overfitting" or "Underfitting" or "Good fit".
flowchart LR S0["Simplify the model"] --> S1["Regularize"] --> S2["Add data"] --> S3["Re-evaluate"]
How to read this chart
- Read it in order: Simplify the model, then Regularize, then Add data, then Re-evaluate.