- (calibration-table probabilities labels #:bins)procedure
Compares predicted probabilities with outcomes in #:bins (default 10) equal bins of [0, 1]. Returns, for each bin that holds a prediction, (low high count mean-probability observed-fraction). A calibrated predictor has the mean probability close to the observed fraction of positives in every bin.
> (calibration-table '(0.05 0.15 0.12 0.95 1.0) '(#f #f #t #t #t)) ((0 1/10 1 0.05 0) (1/10 1/5 2 0.135 1/2) (9/10 1 2 0.975 1))