Walk me through an ML project you did, end to end.
Machine learning basics · Pro 1
Short answer
Cover the problem and the decision it supports, the data and how you cleaned it, the baseline, the features and models you tried, how you validated without leakage, the metric and why it fit, the result against the baseline, and how it was used. End with what you would improve, in about two minutes.
Deeper answer
Interviewers look for a full loop and for judgement at each step. Starting with the decision, for example 'which loans to send for manual review', shows you understand the business. A simple baseline shows discipline, and an honest comparison shows you can measure.
Mention one hard problem you solved, such as imbalanced classes, missing values or leakage, because it gives the interviewer something to ask about. If the project never reached production, say how it would be served and monitored. Numbers should be ones you can explain.
What a strong answer covers
- Starts with the problem and the decision it supports
- Describes data and cleaning
- Has a baseline and compares models
- Validates properly and picks a fitting metric
- Explains the result and how it is used or deployed
Answer it out loud in the mock interview about 2.5 min
Follow-ups to expect
- Why did you choose that metric?
- What would you monitor in production?
Common mistakes
- Only listing algorithms tried
- No baseline to compare against
Learn it
- How would you tell whether a new model really performs better in an A/B test?
- Explain the bias-variance trade-off.
- What is the difference between a random forest and gradient boosting?
- How does k-means work, and how do you choose k?
- What is data leakage, and how do you prevent it?
- Give an example of feature engineering that made a model better.
- How do you know whether you have enough training data?
- How do you handle a heavily imbalanced classification problem, such as fraud detection?
- What is the difference between linear and logistic regression?
- How do you deal with missing values in a dataset?
- What is overfitting, and how do you spot it?
- Explain precision and recall with an example.
- What do L1 and L2 regularisation do?
- What is the difference between supervised and unsupervised learning?
- Why do we split data into training, validation and test sets?
- What is the difference between training and inference?