What is overfitting, and what are three techniques to prevent it?

technical-conceptual · Junior level · data-ml

What the interviewer is really asking

Check foundational knowledge of model generalisation and practical mitigation strategies.

What to say

What to avoid

Example answers

Strong: When training a decision tree on a small dataset I noticed training accuracy was 98% and test accuracy was 61%. I added max_depth=5 and min_samples_leaf=10 constraints, which brought test accuracy up to 83%.

Weak: Overfitting means the model is confused by noisy labels, so I'd just clean the data and retrain.

Want questions matched to your role? Paste a job title, job description, or CV and get a personalized set, or go Pro to unlock the full bank.