Qu

roc_curve

Builtin index · Statistics & ML

result = roc_curve(actual, score)

Input: actual, score · Output: result

What it is

ROC curve of any real-valued score against 0/1 labels actual.

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
result = roc_curve(actual, score)
actual —not documented yet
score —not documented yet
result —
Returns {fpr, tpr, thresholds, auc}: one point per distinct threshold (equal scores move together), starting at rate (0, 0) with threshold inf; auc is the trapezoid area and equals roc_auc(actual, score). Errors if a label is not 0 or 1, a score is NaN, or only one class is present.

Examples

No documentation example calls this form yet. The Statistics & ML chapter is where one belongs.

How it works

roc_curve(actual, score) / pr_curve(actual, score) -- the curves behind roc_auc: 0/1 labels against any real-valued score.

From the note above this builtin in the interpreter, where the reasoning was written down as it was built.