Learn R Programming

iai (version 1.4.0)

roc_curve.default: Construct an ROC curve from predicted probabilities and true labels

Description

Julia Equivalent: IAI.ROCCurve

Usage

# S3 method for default
roc_curve(obj, y, positive_label = stop("`positive_label` is required"), ...)

Arguments

obj

The predicted probabilities for each point in the data.

y

The true labels of the data.

positive_label

The label for which probability is being predicted.

...

Additional arguments (unused)

IAI Compatibility

Requires IAI version 2.0 or higher.

Examples

Run this code
# NOT RUN {
iai::roc_curve(probs, y, positive_label=positive_label)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab