Evaluate machine-learning models reliably

8 steps · about 4 h 15 min · Intermediate

  1. Compare classification metrics (doc, Google for Developers, 25 min)

    Learn why accuracy, precision and recall answer different questions.

  2. Read ROC and AUC (doc, Google for Developers, 25 min)

    Evaluate ranking across thresholds while noting the metric's limits.

  3. Survey scoring tools (doc, scikit-learn, 35 min)

    Match metrics to regression, classification, ranking and clustering tasks.

  4. Use cross-validation (doc, scikit-learn, 40 min)

    Estimate generalisation across multiple train-test splits.

  5. Prevent data leakage (doc, scikit-learn, 35 min)

    Keep preprocessing and test information out of model training.

  6. Check probability calibration (doc, scikit-learn, 30 min)

    Test whether predicted confidence matches observed frequency.

  7. Evaluate performance by group (doc, Google for Developers, 30 min)

    Look for harms hidden by an aggregate metric.

  8. Test the whole ML system (doc, Google for Developers, 35 min)

    Extend evaluation to data, pipelines and production behaviour.