entrenar/eval/classification/average.rs
1//! Averaging strategies for multi-class metrics
2
3/// Averaging strategy for multi-class metrics
4#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
5pub enum Average {
6 /// Calculate metrics for each label, return unweighted mean
7 Macro,
8 /// Calculate metrics globally by counting total TP, FP, FN
9 Micro,
10 /// Weighted mean by support (number of true instances per label)
11 Weighted,
12 /// Return metrics per class (no averaging) - used internally
13 None,
14}