mlquantify.calibration#

Post-hoc calibration of classifier posteriors and quantifier outputs.

The scaling family of classifier calibrators (Temperature / Vector Scaling and their bias-corrected variants) is provided by ClassifierCalibrator.

Scaling-based calibrators that rescale a classifier’s logits to minimise the held-out negative log-likelihood (temperature and vector scaling), improving probabilistic quantifiers such as EMQ.

Calibration#

Calibrator

Base class for calibrators.

ClassifierCalibrator

Post-hoc calibration of classifier posteriors by logit scaling.

QuantifierCalibrator

Post-hoc calibration of quantifier prevalence estimates.