Skip to main content

Module calibration

Module calibration 

Source
Expand description

Calibration (reliability) binning for probabilistic classifiers.

Structs§

CalibrationBin
One reliability-diagram bin: the mean predicted probability, the observed positive frequency, and how many samples fell in the bin.

Functions§

calibration_curve
Bin predicted probabilities into n_bins equal-width bins over [0, 1] and compute the observed positive frequency in each. Empty bins are omitted. A perfectly calibrated model has every point on the y = x diagonal.