All jobs / Data science / ML / AI / Model Evaluation
Data science / ML / AI interview question · 0–1 years
A teammate keeps rerunning the test set after each hyperparameter tweak. What do you say?
The strongest answer
Stop — that set is now another validation fold. Freeze a true holdout and only open it when the recipe is locked
Why it works
Exactly. Repeated peeking turns test into val. A holdout you keep opening is not a holdout.
What a good answer covers
- Repeated test peeks burn the holdout.
- Lock the recipe, then open test once.
- Do not average your peeks.
- Process beats “I will not look.”
Answers that fall short
- Close, but not the strongest: It is fine if they pinky-swear not to remember the number
Memory is not an access-control policy. - Weak: Average the last five test scores so it looks stable
Averaging peeks does not restore independence. - Red flag: Hide the test labels in the same notebook so they “cannot cheat”
Same notebook, same temptation. Split the files and the process.
Who gets asked this
More Model Evaluation questions
- Fraud is 1% of rows. The model is “99% accurate.” What is the problem?
- You have daily sales for two years. How do you split?
- When do you care more about recall than precision for a screening model?
- The interviewer draws a 2×2 and asks where a false negative sits. Strongest answer?
- A few huge outliers dominate the loss. What do you say in an interview?
- A peer says “we optimise F1 because that is what ML people do.” Your reply?
- Each user has 40 sessions. You split rows at random. What goes wrong?
- When is ROC-AUC a reasonable headline, and when is it a dodge?