pub struct Calibration {
pub n: usize,
pub brier: f64,
pub log_loss: f64,
pub skill: f64,
pub bins: Vec<ReliabilityBin>,
pub check_n: usize,
pub check_skill: f64,
pub check_log_loss: f64,
pub hit_rate: f64,
pub by_provenance: Vec<ProvenanceScore>,
}Expand description
Calibration summary over a set of forecasts.
Fields§
§n: usizeForecasts scored.
brier: f64Prequential Brier score, mean (p_chosen − 1)². Lower is better;
0.25 is the always-0.5 baseline.
log_loss: f64Prequential log-loss, mean −ln p_chosen, in nats. Lower is better;
ln 2 ≈ 0.693 is the always-0.5 baseline.
Comparable across time for one acquisition rule, and not
comparable across acquisition rules: an information-seeking rule
deliberately serves duels near p = 0.5, which carry the highest
log-loss by construction. Comparing rules on their own self-chosen
question sets would score the willingness to ask hard questions as a
failure. Use check_log_loss for that.
skill: f64Brier skill against a coin flip, 1 − B/0.25. 0 = no better than
chance, 1 = perfect and certain, negative = worse than a coin.
bins: Vec<ReliabilityBin>Reliability diagram buckets over P(A wins).
check_n: usizeForecasts among the uniformly-random check duels.
check_skill: f64Brier skill restricted to the check duels — the selection-bias-free number.
check_log_loss: f64Log-loss restricted to the uniformly-random check duels, in nats. The only log-loss here that means the same thing under any acquisition rule.
hit_rate: f64Running hit rate, kept only so a frontend can show how misleading it is next to the skill score.
by_provenance: Vec<ProvenanceScore>The same scores, split by how the answer was collected. Empty streams are omitted, so a session that has never committed a hand edit carries exactly one row and reads as it always did.
Trait Implementations§
Source§impl Clone for Calibration
impl Clone for Calibration
Source§fn clone(&self) -> Calibration
fn clone(&self) -> Calibration
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more