Skip to main content

fit_temperature

Function fit_temperature 

Source
pub(crate) fn fit_temperature(outcomes: &[Outcome]) -> (f64, f64)
Expand description

Grid-search the temperature that best explains the labelled outcomes.

Minimising negative log-likelihood of the correct label is the standard temperature-scaling fit. Cases where no label came back are skipped — they carry no evidence about calibration, only about fidelity, which is counted separately.