Data for ML
For engineers
Collecting, labelling, splitting, balancing and documenting training data, and the leakage and bias that quietly ruin models
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
A team wants to train on a public dataset. What must they check first about its contents?
Check yourself · 2 of 5
Why measure agreement between two annotators before labelling the whole dataset?
Check yourself · 3 of 5
In a training pipeline, what does target leakage mean?
Check yourself · 4 of 5
A model will forecast next month's sales. Which split fits?
Check yourself · 5 of 5
On a dataset where 0.5 percent of rows are positive, why is accuracy a poor metric?
Topics
- Collecting data with consent and coverage4 min read · Sources, licences, consent and personal data, and whether the data covers the cases the model will meet in use
- Labelling guidelines and annotator agreement5 min read · Writing labelling instructions, measuring agreement between annotators, handling disputed items and budgeting labelling cost
- Spotting target leakage in features5 min read · Features that encode the answer, preprocessing fitted on all data and duplicates across splits, with too-good scores as the warning sign
- Time-aware and group-aware splits5 min read · Splitting by time for forecasts and by user or patient for grouped data, so the test set looks like the future
- Class imbalance and sampling bias5 min read · Rare positives, class weights and resampling, and groups that are under-represented in how the data was gathered
- Documenting datasets with datasheets and versions4 min read · Recording where data came from, how it was labelled, known gaps and the exact version a model was trained on
Start here
- scikit-learn: common pitfalls and recommended practices (opens in a new tab)ArticleFree
Data leakage, preprocessing inside pipelines and inconsistent preprocessing, with working code.
- Cross-validation: evaluating estimator performance (scikit-learn) (opens in a new tab)DocsFree
Group-aware and time-series splitters, and why each exists.
- Datasheets for Datasets (opens in a new tab)PaperFree
The question list for documenting where a dataset came from, how it was labelled and what it should not be used for.
Helps to know first
110 questions · last verified 2026-12