pub fn f1_score( predictions: &[usize], targets: &[usize], n_classes: usize, avg: Average, ) -> f64
F1 Score — harmonic mean of precision and recall.
F1 = 2 * (precision * recall) / (precision + recall)