Machine Learning & Data Science
68 questionsDONEUNLOCKEDLOCKED
Machine Learning & Data Science Interview Questions
Classical ML, embeddings, metrics (precision/recall, AUC), experiment design and statistics: what Google Cloud, Databricks and Scale still test alongside GenAI.
Grounded in real Forward Deployed Engineer interview loops and written to a senior-engineer editorial bar.
You have 10 free answers unlocked here.Sign in free for 10 more · 48 are premium.
01–28Foundationsthe vocabulary every loop assumes you already have0/28 done
29–52Core loopsthe questions every loop actually asks0/24 done
53–68Field scenariosthe messy, half-specified problems from real deployments0/16 done
The concepts behind Machine Learning & Data Science
The vocabulary and mental models these questions assume, from our curriculum. Start with the foundations free; the deeper, interview-defining ideas are part of premium.
Core
Information Theory for ML: Entropy, Cross-Entropy, KL and PerplexityFour quantities from information theory keep showing up in ML: entropy measures the average surprise in a distribution, cross-entropy is the loss that trains classifiers and language models, KL divergence measures how far one distribution sits from another, and perplexity is the intuitive branching-factor view of a language model's loss. Knowing where each appears separates people who tuned a loss function from people who only imported one.Sign in
Foundational
Precision, Recall and F1Precision asks how many of your positive predictions were right; recall asks how many of the real positives you caught. They trade off against each other, F1 is their harmonic mean, and accuracy lies to you the moment the classes are imbalanced.Foundational
Gradient Descent & Learning RateGradient descent is how almost every model learns: compute the slope of the loss with respect to the weights, then step the weights a little in the downhill direction. The learning rate sets the step size, and it is the single most consequential knob. Too small and training crawls; too large and it overshoots and diverges.Foundational
Bias-Variance TradeoffBias is error from a model too simple to capture the pattern; variance is error from a model so flexible it memorizes noise. Total generalization error is roughly their sum, and the whole craft of model fitting is pushing both down at once instead of trading one for the other.Foundational
Overfitting and RegularizationOverfitting is when a model learns the noise in your training data instead of the signal, so it scores beautifully on data it has seen and falls apart on data it has not. You spot it from the gap between train and validation error, and you fight it with more data, regularization, early stopping, dropout, and honest cross-validation.Foundational
Golden Datasets and Eval SetsA golden dataset is a representative, labeled set of examples drawn from real usage and held out from all tuning, used as the fixed yardstick for whether a change is better or worse. In classical ML it is called the test set; in LLM systems it is the eval set. Either way it is the single most valuable asset you build, because without it you are shipping on vibes.Core
Calibration and UncertaintyA model is calibrated when its confidence matches its accuracy: of the predictions it calls 80% likely, about 80% should be right. Modern neural nets and LLMs are usually overconfident, so a raw probability or a self-reported 'I'm 95% sure' is not trustworthy on its own. You fix it with temperature scaling or isotonic regression, get distribution-free coverage with conformal prediction, and then use the calibrated confidence to abstain, route, or escalate to a human.Sign in
Advanced
Offline vs Online EvaluationOffline evaluation scores a change against a fixed golden set: fast, cheap, repeatable, and runnable in CI before anything ships. Online evaluation measures the change on real traffic and real users, usually via A/B, and is the only true read on impact. The two are not interchangeable: offline gains routinely fail to hold online because of distribution shift and metric gaming. The discipline FDE loops test is using offline to gate and online to confirm.🔒 Premium
