pub fn rps(probs: &[&[f64]], labels: &[usize]) -> Result<f64, MetricError>Expand description
Mean ranked probability score over the cumulative distribution, normalized by
K − 1 so scores are comparable across runtime-declared level cardinalities:
RPS = Σₖ₌₀..K₋₂ (Fₖ − 1{y ≤ k})² / (K − 1) (lower is better; 0 is perfect).
This is the primary proper scoring rule for the ordinal score primitive (S6b2).
For width-2 distributions (noul) it equals half the multiclass Brier score.
§Errors
Propagates validation errors.