f1_score

Function f1_score 

Source
pub fn f1_score(
    predictions: &[usize],
    targets: &[usize],
    n_classes: usize,
    avg: Average,
) -> f64
Expand description

F1 Score — harmonic mean of precision and recall.

F1 = 2 * (precision * recall) / (precision + recall)