powered by
Get performance metrics for classification predictions
evaluate_classification(predicted, actual)
Numeric vector of scores with metric as names
Vector of predicted probabilities
Vector of realized outcomes, must be 0/1
evaluate_classification(c(.7, .1, .6, .9, .4), c(1, 0, 0, 1, 1))
Run the code above in your browser using DataLab