
Last chance! 50% off unlimited learning
Sale ends in
plotROC(x, correct, posValue = NULL, xlim = 0:1, ylim = 0:1,
asp = 1, type = NULL, pch = "x", add = FALSE, ...)
either the result from a test
or a model
either the true values or testing data for the model
the label marking the positive value.
If NULL
(default) then the larger value.
sets better defaults for plot.default
sets better defaults for plot.default
sets better defaults for plot.default
sets better defaults for plot.default
sets better defaults for plot.default
if `FALSE` (default) produces a new plot and if `TRUE` adds to existing plot.
gets passed to plot.default
rocSVM, lsSVM
# NOT RUN {
banana <- liquidData('banana-bc')
model <- rocSVM(Y~.,banana$train)
plotROC(model ,banana$test)
# or:
result <- test(model, banana$test)
plotROC(result, banana$test$Y)
model.ls <- lsSVM(Y~., banana$train)
result <- plotROC(model.ls, banana$test)
# }
Run the code above in your browser using DataLab