pub fn f1_score(
predictions: &[usize],
targets: &[usize],
num_classes: usize,
average: F1Average,
) -> Result<f32, EvalError>Expand description
Compute F1 score with the specified averaging strategy.
num_classes must be at least as large as the maximum label value + 1.