roc_auc_score {validation} R Documentation

Compute Area Under the Receiver Operating Characteristic Curve (ROC AUC) from prediction scores.

Description

Usage

roc_auc_score(y.true, pred);

Arguments

y.true

array-like of shape (nsamples,) or (nsamples, n_classes) True binary labels Or binary label indicators. The multiclass case expects shape(nsamples,) And labels With values In 0, 1, ..., nclasses-1. [as double]

pred

array-like of shape (nsamples,) or (nsamples, n_classes) Target scores, can either be probability estimates Of the positive Class, confidence values, Or non-thresholded measure of decisions (as returned by "decision_function" on some classifiers). [as double]

Details

Authors

MLkit

Value

this function returns data object of type double.

clr value class

Examples


[Package validation version 1.0.0.0 Index]