Machine Learning Fundamentals interview question
What is data leakage, and how do you detect it?
Definition Asked in Machine Learning Engineer interviews
Summary
Leakage is information in the training data that wouldn't be available when the model makes real predictions, such as a feature computed after the outcome, or test data influencing preprocessing. It produces suspiciously good offline scores that collapse in production.
Keep reading with a membership
The full answer with examples, key points and comparisons is part of the membership, along with every other interview answer, progress tracking and Daily Review. Most-asked answers stay free to read.
More Machine Learning Fundamentals questions
- Explain the bias-variance trade-off.
- Your model scored well offline but performs badly in production. What do you check?
- How do you split data for training, validation and testing, and what is cross-validation?
- Which metrics would you use for a classification model, and when is accuracy misleading?
- What is overfitting, and how do you prevent it?
- What is the difference between supervised, unsupervised and reinforcement learning?
- Compare decision trees, random forests and gradient boosting.
- Design a system that serves predictions from a trained model to a web application.