Calculates the ROC (Receiver Operating Characteristic) curve for given true labels and predicted ones. The pROC package is needed for this functionality.
roc(...)# S3 method for mldr
roc(mldr, predictions, ...)
Additional parameters to be passed to the pROC::roc
function.
See roc
for more information.
An "mldr"
object. Its labels will be extracted via
mldr_to_labels
.
Matrix of predicted labels or probabilities, columns corresponding to labels and rows to instances.
ROC object from pROC package.