Learn R Programming

mldr (version 0.4.3)

roc: ROC curve

Description

Calculates the ROC (Receiver Operating Characteristic) curve for given true labels and predicted ones. The pROC package is needed for this functionality.

Usage

roc(...)

# S3 method for mldr roc(mldr, predictions, ...)

Arguments

...

Additional parameters to be passed to the pROC::roc function. See roc for more information.

mldr

An "mldr" object. Its labels will be extracted via mldr_to_labels.

predictions

Matrix of predicted labels or probabilities, columns corresponding to labels and rows to instances.

Value

ROC object from pROC package.

See Also

mldr_evaluate roc