roc.curves: Plot ROC Curves

roc.curvesR Documentation

Plot ROC Curves

Description

This function plots ROC Curves of several classification predictions.

Usage

roc.curves(predictions, gt, methods.names = NULL)

Arguments

predictions

The predictions of a classification model (factor or vector).

gt

Actual labels of the dataset (factor or vector).

methods.names

The name of the compared methods (vector).

Value

The evaluation of the predictions (numeric value).

See Also

cost.curves, performance

Examples

require (datasets)
data (iris)
d = iris
levels (d [, 5]) = c ("+", "+", "-") # Building a two classes dataset
model.nb = NB (d [, -5], d [, 5])
model.lda = LDA (d [, -5], d [, 5])
pred.nb = predict (model.nb, d [, -5])
pred.lda = predict (model.lda, d [, -5])
roc.curves (cbind (pred.nb, pred.lda), d [, 5], c ("NB", "LDA"))

fdm2id documentation built on July 9, 2023, 6:05 p.m.

Related to roc.curves in fdm2id...