Skip to content
RED SAG Skills
easyMachine Learning Engineer interview question

What is overfitting, how do you detect it, and how do you reduce it?

What the interviewer wants to hear

  • Model fits training data noise and does not generalise
  • Detected by a gap between training and validation performance
  • Fixes: more data, regularisation, simpler model, early stopping
  • Use cross-validation to choose complexity

Model answer

Overfitting is when a model learns the training data too closely, including its noise, so it performs well on training data but poorly on new data. I detect it by comparing training and validation metrics: if training error keeps going down while validation error goes up, the model is overfitting. Learning curves make this easy to see. To reduce it, I first try to get more or cleaner data. Then I add regularisation such as L1 or L2 penalties, dropout for neural networks, or limits like max depth for trees. Early stopping based on validation loss is simple and effective. I may also reduce model complexity or features. I use cross-validation to pick these settings so the choice is not tuned to one lucky split, and I keep a separate test set for the final check.

Can you answer it under time pressure?

Take a timed easy round and get scored on every answer.

Start mock interview

More easy Machine Learning Engineer questions