ML metrics
For engineers
Precision, recall, F1, ROC and PR curves, calibration and regression errors, chosen to match the decision and compared honestly
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 model flags 80 emails as spam, and 60 of them really are spam. What is its precision?
Check yourself · 2 of 5
What does F1 combine?
Check yourself · 3 of 5
Which metric is most affected by one very large prediction error?
Check yourself · 4 of 5
A model is well calibrated. Among cases it scores near 0.7, what should you expect?
Check yourself · 5 of 5
Why compute a baseline score before evaluating a model?
Topics
- Precision, recall and the confusion matrix4 min read · True and false positives and negatives, and the trade-off between catching more cases and raising fewer false alarms
- F1, ROC-AUC and precision-recall curves5 min read · Single-number summaries, decision thresholds, and why accuracy and ROC-AUC flatter models when positives are rare
- Regression error metrics: MAE, RMSE and MAPE5 min read · Absolute, squared and percentage errors for numeric predictions and how outliers and near-zero values distort each
- Calibrated probabilities and reliability plots5 min read · Whether a predicted 0.8 really happens 80 percent of the time, reliability diagrams, Brier score and recalibration
- Comparing models with baselines and intervals5 min read · Deciding whether a small gain is real with a baseline, bootstrap confidence intervals and per-segment scores
- Choosing a metric for the business decision5 min read · Tying the metric and threshold to the cost of false positives and false negatives in the real use case
Start here
- Google ML Crash Course: classification (opens in a new tab)CourseFree
Accuracy, precision, recall and ROC/AUC explained with worked confusion-matrix numbers.
- scikit-learn: metrics and scoring (opens in a new tab)DocsFree
The reference for every metric named in this skill, with the exact function and its edge cases.
- scikit-learn: probability calibration (opens in a new tab)DocsFree
Reliability curves, Brier score and the sigmoid and isotonic recalibration methods, with plots.
Helps to know first
110 questions · last verified 2026-12