Compute calibration diagnostics for a fitted false-positive filter on
a labelled evaluation set. Returns a Filter_Calibration carrying
the reliability table, Brier score, log-loss, per-class confusion
matrix, and a threshold sweep curve.
Two call shapes:
calibrate(calibrated_matches, labels)- evaluate on labels held out from the training fit.calibrate(calibrated_matches)- evaluate on the training labels stored on theFilter_Model(sanity-check view; do not use for model selection).
Arguments
- x
A
Calibrated_Matchesobject fromapply_filter()/calibrate_matches().- labels
Optional labels
data.table(typically fromimport_labels()) for held-out evaluation.- bins
Integer. Number of equal-width probability bins for the reliability table. Default
10.- ...
Reserved for future expansion.
