Model Selection, Tuning, and Generalization Questions

Choosing and tuning models so they generalize to unseen data rather than memorizing the training set. Covers the bias-variance tradeoff and its decomposition, diagnosing over- and under-fitting from learning curves, and regularization techniques such as L1/L2 penalties, dropout, and early stopping, alongside cross-validation strategies and grid, random, and Bayesian hyperparameter search. Emphasizes a principled, reproducible process for selecting model complexity and tuning against a real compute-versus-accuracy budget rather than ad-hoc trial and error.

MediumTechnical
76 practiced

You trained a random forest and observe 99% training accuracy but 75% validation accuracy on the same metric. Walk through a systematic, prioritized debugging process: what you'd check first, second, and third, and which fixes you'd try in what order.

MediumBehavioral
87 practiced

Behavioral: as a senior data scientist, describe a time you had to convince product and engineering to REDUCE the number of tuning experiments being run, not increase them. What was the argument, and how did you make the trade-off concrete?

HardTechnical
74 practiced

Implement a bootstrap-based estimate of a model's bias and variance for a regression problem in Python: given a training set and a way to fit the model, produce estimates of squared bias, variance, and their sum, using repeated resampling.

MediumBehavioral
71 practiced

Behavioral: tell me about a time you recommended collecting additional labeled data instead of increasing model complexity to solve a performance problem. What evidence convinced you, and what pushback did you get?

MediumTechnical
86 practiced

A new candidate model improves your cross-validated accuracy by 0.8%, but increases prediction variance across user segments (it does noticeably better on some segments and worse on others). Would you ship it? What additional evidence would change your answer?

Unlock Full Question Bank

Get access to all Model Selection, Tuning, and Generalization interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.