Lesson deck

The ML interview playbook: structure, answer method, debugging procedures, estimates and project defence flashcards

Reviewing needs JavaScript. You can read every card in the list below.

Loading your cards...

Back to the lesson16 cards in this deck

Read all 16 cards as a list
  1. Front
    Name the common ML interview round types and the method for each.
    Back
    Fundamentals (ladder: intuition, maths, code, pitfall), coding (clarify, simple version, edge cases, then speed), system design (nine steps), applied case (ten-step method), project deep dive and behavioural (STAR). This is a common pattern, not a verified list for any company, so ask the recruiter what each round covers.
  2. Front
    How should you treat the six-round map of an ML interview loop?
    Back
    As a common pattern. Loops differ by company and level, rounds overlap (a coding question can turn into how you would evaluate it), and names vary. Check the actual loop with the recruiter.
  3. Front
    List the ten steps of the answer method for an open ML question.
    Back
    1 Clarify, 2 state assumptions, 3 baseline, 4 metric, 5 data, 6 model, 7 evaluation, 8 failure modes, 9 trade-offs, 10 monitoring. Say the step names aloud so the interviewer can redirect you. The baseline and metric come before the model.
  4. Front
    What is the ladder for explaining a concept, and which rung signals experience?
    Back
    Intuition, maths, code, pitfall. The pitfall rung (when it fails, what is commonly misread) signals that you have used the idea. Stop at the rung where the interviewer signals enough.
  5. Front
    What do you do when you are stuck or cannot recall a formula?
    Back
    Restate the question, start from the smallest case, state assumptions, name a baseline, or ask a clarifying question. Say plainly that you do not remember the exact form, then give the idea and how you would derive it. Do not invent a half-remembered formula.
  6. Front
    Loss is NaN. What is the first step?
    Back
    Find the first step at which anything is non-finite before changing anything. NaN at step 0 points to data, labels or the loss code (log of zero, softmax overflow). A loss that rose first points to a too-high learning rate. A sudden jump points to a bad batch or a division by zero variance.
  7. Front
    Loss is flat from step 1. What is the first step?
    Back
    Check the starting loss against the expected value (about ln C for C classes, since a uniform prediction gives ln C), then try to overfit a tiny batch. If it cannot, suspect a pipeline bug. If it can, tune the learning rate, initialisation or normalisation.
  8. Front
    Validation score is too good to be true. Name three checks.
    Back
    Each catches a different leak. Shuffle the labels and rerun the whole pipeline: a score well above chance means label-using preprocessing (target encoding or feature selection on all rows). Count ids shared between training and validation: group leaks. Inspect the top feature: proxies known only after the outcome (a proxy falls to chance on shuffled labels, so the shuffle misses it). In the script a proxy scored AUC 1.000 against 0.718 for an honest feature, the chance baseline on shuffled labels was 0.503, and a target-encoded noise category scored 0.758, still 0.784 on shuffled labels.
  9. Front
    Offline metric up, A/B flat. In what order do you check?
    Back
    Cheapest first: the experiment itself (assignment, sample ratio, power), then serving features against training features (skew), then whether the offline metric matches the business metric, then novelty or interference. Do not extend the test until it turns significant.
  10. Front
    Give the base-rate formula and the worked example.
    Back
    PPV = pi s / (pi s + (1 - pi) f). With 10,000 people, 1% sick, 99% sensitivity and a 5% false-positive rate: 99 sick positives and 495 healthy positives, so 99 / 594 = 0.1667.
  11. Front
    Why compute the majority baseline, and what did the script show?
    Back
    Accuracy means nothing without it. With 100 frauds in 10,000, always predicting legitimate scores 0.9900. A model at 0.9920 accuracy had precision and recall of 0.60 each, which is what tells its story.
  12. Front
    How do you count parameters and forward FLOPs of a dense network?
    Back
    A layer has in x out weights plus out biases. A forward pass costs about 2 x batch x in x out operations. Widths 784, 256, 128, 10 give 235,146 parameters (0.94 MB in fp32) and 469,504 operations per example. State your throughput assumption (an assumed 10 GFLOP/s gives 3.0 ms for a batch of 64).
  13. Front
    How sure is 182 correct out of 200, and why is 3 points over 176 not a claim?
    Back
    The 95% Wilson interval is 0.862 to 0.942, against 0.828 to 0.918 for 176 of 200, so they overlap heavily. With ten times the data they are 0.897 to 0.922 and 0.865 to 0.894. Both models share the test items, so compare them with a paired test.
  14. Front
    What does a strong project story contain beyond STAR?
    Back
    The baseline you compared against, the evaluation design (split by time or group, leakage checked), a measured result with its uncertainty, and what you would change. One university career centre (UW) suggests roughly 20% situation, 10% task, 60% action and 10% result. Claim only what you measured.
  15. Front
    Name five common traps in ML interview answers.
    Back
    Hand-waving, a metric without a baseline, ignoring leakage, jumping to a model before the frame, false precision, reciting without a failure case, silence, bluffing a formula, over-claiming a team's work.
  16. Front
    What is a repeatable mock-interview routine?
    Back
    Short daily drills (90 seconds aloud), a weekly 45-minute mock (5 intro and project, 12 fundamentals, 25 design or coding, 3 your questions), and a one-line rule for each miss, re-answered cold a few days later. That time split is this course's suggestion, not a rule.