Learn R Programming

iai (version 1.10.2)

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
if (FALSE) iai::roc_curve(probs, y, positive_label=positive_label)

Run the code above in your browser using DataLab