Skip to main content

min_cps_nonconformity

Function min_cps_nonconformity 

Source
pub fn min_cps_nonconformity(probs: &[f64], label: usize) -> f64
Expand description

min-CPS-style nonconformity (Zhang et al. 2025): the smallest mass threshold τ at which the minimum-length contiguous window with mass ≥ τ contains the realized label. Computed by enumerating candidate thresholds (distinct contiguous-window masses); O(K³) worst case, intended for calibration-fitting batches, with the serving-time set constructed by min_cps_interval.