Skip to main content

score_classification

Function score_classification 

Source
pub fn score_classification(
    predicted: &[Option<String>],
    cases: &[ClassificationCase],
) -> ClassificationReport
Expand description

Score predictions against the golden cases (aligned by index). A prediction of None, or one not equal to the case’s expected, is a miss. A prediction missing for a case (short slice) counts as None; predictions beyond cases.len() are ignored — the report is defined over the golden set.