A model scores 99% accuracy on its training data but 70% on test data. What does this suggest?
- Exam domain
- Machine learning foundations
- Difficulty
- Medium
- In this mock
- 5 questions on this domainPractise this domain
Why B is the answer
Overfitting: it learned the training data, not the pattern
A large gap between training and test scores means the model memorised details of the training data and does not generalise. That is overfitting.
Remember: Big train-test gap: overfitting.
In detail
- Train high, test low: overfitting.
- Fixes include more data, regularization and a simpler model.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Underfitting, so add more regularization to fix itWrong
Underfitting gives low scores on both sets, and more regularization would not be the fix for it.
B. Overfitting: it learned the training data, not the patternRight
Big train-test gap: overfitting.
C. The test data leaked into training, which raised both scoresWrong
Leakage inflates the test score; here the test score is the low one.
D. A well-tuned model that is ready to deployWrong
The test score is what predicts real performance, and it is much lower.
Use case
An illustrative scenario, not a real incident.
Illustrative: a churn model looks perfect in training, then misses most churners in production until the team adds data and regularization.
See it in different ways
flowchart LR S0["Collect labelled data"] --> S1["Split train and test"] --> S2["Train"] --> S3["Evaluate on test data"] --> S4["Deploy"]
How to read this chart
- Read it in order: Collect labelled data, then Split train and test, then Train, then Evaluate on test data, then Deploy.
stateDiagram-v2 state "Underfit" as s0 state "Good fit" as s1 state "Overfit" as s2 [*] --> s0 s0 --> s1: more training s1 --> s2: memorises noise s2 --> [*]
How to read this chart
- It starts at "Underfit".
- From "Underfit", "more training" moves it to "Good fit".
- From "Good fit", "memorises noise" moves it to "Overfit".
- It ends at "Overfit".