“…Traditional equations for precision, recall and, therefore, score can only be used for a unique binary class variable. However, Gil‐Begue et al 53 extended them for multiple, possibly nonbinary, class variables. Let be a function that computes any of these evaluation metrics by receiving a confusion matrix, then the metric scores are obtained with macro‐ and micro‐averaging as follows: - Macro‐averaging: averages the scores of each class variable: If the class variable is binary, only the confusion matrix for one of its classes () is considered.
- Micro‐averaging: aggregates the confusion matrices of each class variable:
…”