Computes the balanced error of the predictions.
Usage
balErrMetric(auxData, predicted)
Arguments
- auxData
The true labels.
- predicted
The predicted labels.
Value
The balanced error.
Examples
auxData <- factor(c("A", "B", "A", "B"))
predicted <- factor(c("A", "A", "A", "B"))
balErrMetric(auxData, predicted)
#> [1] 0.25