Skip to main content

Module calibration

Module calibration 

Source
Expand description

Judge calibration: an eval whose workflow is a judge and whose expected values are human labels. Every result is one (judge verdict, label) pair; the report adds the confusion matrix, raw agreement, TPR, TNR and Cohen’s kappa (raw agreement alone flatters a judge on imbalanced labels).

Structs§

CalibrationSummary
How well the judge agrees with the labels.

Functions§

calibrate
Compare every result’s judge verdict with its label (expected).
format_calibration
The terminal block for a calibration summary.
gate
Apply the calibration thresholds (min_kappa, min_tpr, min_tnr) to the gate. An undefined metric (no examples of a class) fails its threshold.