pub fn conformal_quantile(
scores: &[f64],
alpha: f64,
) -> Result<f64, MetricError>Expand description
Finite-sample-corrected split-conformal quantile of calibration nonconformity scores:
the ⌈(n+1)(1−α)⌉-th smallest score. Returns f64::INFINITY when the rank exceeds
n (the prediction set is then “everything” — the guarantee is uninformative at
requested α for this calibration size).
§Errors
MetricError::EmptyInput on empty scores; MetricError::InvalidLevel for α
outside (0, 1).