healthcareai (version 2.3.0)

evaluate_classification: Get performance metrics for classification predictions

Description

Get performance metrics for classification predictions

Usage

evaluate_classification(predicted, actual)

Arguments

predicted

Vector of predicted probabilities

actual

Vector of realized outcomes, must be 0/1

Value

Numeric vector of scores with metric as names

Examples

Run this code
# NOT RUN {
evaluate_classification(c(.7, .1, .6, .9, .4), c(1, 0, 0, 1, 1))
# }

Run the code above in your browser using DataLab