Skip to main content

Module bins

Module bins 

Source
Expand description

Binning for calibration curves and error metrics.

The gate protocol pins 15 equal-mass bins (crate::protocol::GATE_BIN_COUNT) for ECE and reliability curves. Equal-mass (equal-count) binning is used rather than the classic equal-width ECE binning because real decision distributions are peaked: under equal-width binning nearly all mass lands in one or two top bins and the curve says nothing about the rest of the confidence range. Equal-width binning is retained for the class-wise SCE, whose published definition is static (Nixon et al. 2019); ACE is its equal-mass counterpart.

Structsยง

Bin
One populated bin of a reliability diagram.
Binning
A monotone set of bin edges over a confidence axis (edges.len() == n_bins + 1).