Description Usage Arguments Value Author(s) See Also Examples
Convenience function to output statistics related to accuracy, AUC and margins for a selection of models. If sortDis=TRUE
, results are grouped by discrimination task (value contained in DisId column of mc.obj$cldef
). If sortDis=FALSE
, results are grouped by classifier algorithm (value contained in column AlgId of mc.obj$cldef
).
1 2 3 4 | mc.summary(mc.obj,lmod=NULL,sortDis=TRUE)
## Default S3 method:
mc.summary(mc.obj, lmod = NULL, sortDis = TRUE)
|
mc.obj |
|
lmod |
List of models to be considered - Default: all of them |
sortDis |
Should the results be sorted by discrimination task? If FALSE, results are group by classifier techniques |
mc.summary
object:
res |
List of results |
cltask |
Discrimination task(s) or classification algorithm(s) used. |
title |
Title for printing function. |
David Enot dle@aber.ac.uk
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | data(iris)
dat=as.matrix(iris[,1:4])
cl=as.factor(iris[,5])
lrnd=sample(1:150)[1:50]
cl[lrnd]=sample(cl[lrnd])
pars <- valipars(sampling = "cv",niter = 2, nreps=10)
dat1=dat.sel1(dat,cl,pwise="virginica",mclass=NULL,pars=pars)
res1=lapply(dat1,function(x) accest(x,clmeth="lda"))
res2=lapply(dat1,function(x) accest(x,clmeth="randomForest",ntree=50))
## Aggregate res1 and res2
mc=mc.agg(res1,res2)
## Sort results by discrimination task
mc.summary(mc)
## Sort results by algorithm
mc.summary(mc,sortDis=FALSE)
## See what is in
names(mc.summary(mc))
## Print results in a file
## Not run: print(mc.summary(mc,sortDis=FALSE),digits=2,file="tmp.csv")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.