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.

HardTechnical
119 practiced

You need to tune a model that takes hours to train, and want to use a multi-fidelity method like Successive Halving or Hyperband. What would you use as the resource unit (epochs? fraction of training data?), how would you choose the bracket parameters (the halving rate, the max resource), and how does this combine with checkpointing and early stopping to avoid wasted compute?

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?

MediumTechnical
71 practiced

Implement a function compute_learning_curve(estimator, X, y, train_sizes, cv, scoring) that returns training-set-size-indexed arrays of mean training and validation scores. How would you compute this efficiently by reusing CV folds across train-size steps, and how would you support stratified sampling for a classification target?

EasyTechnical
115 practiced

Explain how k-fold cross-validation is used specifically FOR model selection and hyperparameter tuning (as opposed to just estimating a single model's performance): what score do you actually compare across candidate configurations, and what's the difference between using k-fold this way versus a single held-out validation set?

MediumTechnical
70 practiced

You have two candidate models, a logistic regression and a deep neural network, with similar validation scores. Walk through the factors beyond the raw metric that would actually decide which one you ship.

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.