powered by
Get Balanced Error Rate (BER) in classification.
getBER(actual, predicted, weigh_added = FALSE, weighing_matrix)
BER
Vector of actual classifications of samples
Vector of predicted classifications of samples
To add a weighing matrix when it is classification
The matrix used to get a misclassification score
data("mosquito") actual <- Yotu predicted <- sampling_from_distribution(actual) getBER(actual, predicted)
Run the code above in your browser using DataLab