QUESTION 8 OF 15

How do you detect overfitting?

Reveal the answer and explore the explanation.

08
MediumVisual

How do you detect overfitting?

Answer
Answer

Fits training-specific patterns or noise and generalizes poorly.

Deeper understanding

Start by verifying the split and absence of leakage, then compare learning curves and errors on representative held-out data. Common remedies include more suitable data, reduced complexity, regularization and early stopping. A gap may also indicate distribution shift rather than only excessive model complexity.

Practical example

Observe very good training error and much worse validation error.

Reference: Further reading ↗

Last 30 min revisionHigh-yield interview Q&As