boxplot.maccest {mt} | R Documentation |
Boxplot Method for Class 'maccest'
Description
Boxplot method for the accuracy rate of each classifier.
Usage
## S3 method for class 'maccest'
boxplot(x, ...)
Arguments
x |
An object of class |
... |
Additional arguments to the plot, such as |
Details
This function is a method for the generic function boxplot()
for class
maccest
. It plots the accurary rate for each classifier.
Value
Returns boxplot of class maccest
.
Author(s)
Wanchang Lin
See Also
Examples
# 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)
[Package mt version 2.0-1.20 Index]