Evaluate machine-learning models reliably
8 steps · about 4 h 15 min · Intermediate
- Compare classification metrics (doc, Google for Developers, 25 min)
Learn why accuracy, precision and recall answer different questions.
- Read ROC and AUC (doc, Google for Developers, 25 min)
Evaluate ranking across thresholds while noting the metric's limits.
- Survey scoring tools (doc, scikit-learn, 35 min)
Match metrics to regression, classification, ranking and clustering tasks.
- Use cross-validation (doc, scikit-learn, 40 min)
Estimate generalisation across multiple train-test splits.
- Prevent data leakage (doc, scikit-learn, 35 min)
Keep preprocessing and test information out of model training.
- Check probability calibration (doc, scikit-learn, 30 min)
Test whether predicted confidence matches observed frequency.
- Evaluate performance by group (doc, Google for Developers, 30 min)
Look for harms hidden by an aggregate metric.
- Test the whole ML system (doc, Google for Developers, 35 min)
Extend evaluation to data, pipelines and production behaviour.