ML basics
Calibration
When the model says 80%, is it right about 80% of the time?
What it is and why it exists
A calibrated score means predicted probabilities match observed frequencies. You need calibration to threshold confidently (cascades, review routing). Measure with reliability diagrams or expected calibration error; fix with temperature scaling, Platt scaling or isotonic regression on held-out data.
Quick prototype
Threshold at 0.5.
In production, at scale
Calibration checked on fresh data, recalibrated after model changes, thresholds set from calibrated scores.
Vendors and tools
| scikit-learn CalibratedClassifierCV | Calibration methods |
|---|
How it fails
- Treating LLM verbal confidence as calibrated
What the interviewer asks next
Why does calibration matter for a cascade?
The escalation threshold assumes the confidence means something; if the small model is overconfident, it keeps hard cases it gets wrong.