boxplot.maccest | R Documentation |
Boxplot method for the accuracy rate of each classifier.
## S3 method for class 'maccest'
boxplot(x, ...)
x |
An object of class |
... |
Additional arguments to the plot, such as |
This function is a method for the generic function boxplot()
for class
maccest
. It plots the accurary rate for each classifier.
Returns boxplot of class maccest
.
Wanchang Lin
maccest
, plot.maccest
# Iris data
data(iris)
x <- subset(iris, select = -Species)
y <- iris$Species
method <- c("randomForest","svm","knn")
pars <- valipars(sampling="cv", niter = 2, nreps=5)
tr.idx <- trainind(y, pars=pars)
res <- maccest(x, y, method=method, pars=pars,
comp="anova",kernel="linear")
res
boxplot(res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.