Skip to main content

raps_nonconformity

Function raps_nonconformity 

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

RAPS nonconformity: APS cumulative mass plus the regularization penalty lambda · max(rank(label) − k_reg, 0) where rank is the 1-based rank in descending-probability order (Angelopoulos et al. 2021). k_reg is the number of penalty-free top ranks.