What factors determine the percentage split between training, validation, and test sets?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: easy
Interview Round: Other
What factors determine the percentage split between training, validation, and test sets?
```hint Think in counts
Ask how many examples each set needs to do its job, and how the noise in a measured metric depends on that number.
```
### What a Strong Answer Covers
- Why the absolute number of validation and test examples matters more than the percentage, tied to the standard error of the estimate
- How total dataset size changes the usual split, and when cross-validation is the better choice
- How the model's appetite for data, the amount of hyperparameter tuning, and rare classes or segments shift the balance
- How time order and grouped data constrain the split
### Follow-up Questions
- You have 2,000 labeled examples. How do you tune a model and then report a final score?
- Two models score 91.2% and 90.8% on the same 10,000-example test set. Is the difference real, and how would you check?
- How would you split a dataset where each user contributes many rows and behavior drifts over time?
Overview: Asks what decides how a dataset is divided into training, validation and test sets. Tests reasoning about the absolute size each evaluation set needs, standard error, tuning pressure, rare classes, cross-validation on small data, and splits for time series and grouped data.