How do you calculate expected calibration error (ECE)?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Overview: Explains how to compute expected calibration error by binning a classifier's predictions on confidence and comparing each bin's accuracy with its mean confidence. Tests understanding of calibration metrics, binning choices, and why ECE should be paired with a proper scoring rule.