Learn R Programming

SVMMaj (version 0.2.9.3)

roccurve: Plot the ROC curve of the predicted values

Description

Given the predicted values q and its corresponding observed classes y, it shows its separation performances by showing the roc-curve.

Usage

roccurve(q, y = attr(q, "y"), class = 1, ...)

Arguments

q

the predicted values

y

a list of the actual classes of q

class

the base class to show the roc-curve

...

additional parameters given as input to the plot function

Examples

Run this code
model <- svmmaj(diabetes$X, diabetes$y)
roccurve(model$q)

Run the code above in your browser using DataLab