roc.mldr: ROC curve

Description Usage Arguments Value See Also

View source: R/evaluate.R

Description

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

Usage

1
2
3
4
roc(...)

## S3 method for class '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


mldr documentation built on Jan. 11, 2020, 9:18 a.m.