Machine Learning Interview Questions
Practice regularization, data leakage, evaluation metrics, ranking, embeddings, calibration, and model drift with free machine learning interview questions. Each exercise includes hints and a checked explanation.
Practice questions
- You scaled the data before the split. What went wrong? · data leakage · 12 min
- Training loss keeps falling, validation loss rises. What's happening? · overfitting · 10 min
- L1 or L2: which one sets weights to exactly zero, and why? · regularization · 12 min
- Your loss explodes after a few steps. What do you check first? · gradient descent · 12 min
- Random forest or gradient boosting: what does each one fix? · tree ensembles · 12 min
- 99% accuracy on fraud data. Is the model any good? · class imbalance · 10 min
- When does PR AUC tell you more than ROC AUC? · evaluation metrics · 12 min
- Two models have the same AUC. Which probabilities do you trust? · calibration · 12 min
- Your regression R² is negative. What does that mean? · regression metrics · 10 min
- The same shoppers appear in train and validation folds. What breaks? · cross-validation · 12 min
- Great offline AUC, poor online. Could a feature join leak? · data leakage · 12 min
- Same model, same user, different scores online. Where's the skew? · serving · 10 min
- Offline metric improved, but the A/B test is flat. Why? · A/B testing · 12 min
- Dot product, cosine or L2: why do they pick different items? · embeddings · 12 min
- Why retrieve candidates before ranking, and which stage missed the item? · recommendations · 12 min
- Top results get more clicks. How do you correct for position? · ranking · 15 min
- What does an LLM actually predict, and what does temperature change? · LLM · 10 min
- How do you pick a threshold when error costs differ? · Decision thresholds · 12 min
- Feature PSI jumped to 0.34. Should you retrain the model? · Data drift · 12 min
- How do you size a human review band under queue limits? · Human review triage · 15 min
- A 20-row subgroup drops to 80% precision. Should you block release? · Subgroup evaluation · 15 min
How to practice
Predict the result or explain what you would change before opening the hints. Then compare your reasoning with the answer and try the follow-up question.