summarize {boost} | R Documentation |
Yields text and graphical output that summarizes the misclassifcation error rates that have been achieved with boosting methods
summarize(boost.out, resp, mout = ncol(boost.out), grafik = TRUE)
boost.out |
An R-object, as obtained from one of the functions 'bagboost', 'logitboost', 'adaboost' or 'l2boost'. |
resp |
A vector containing the class labels of the test instances. Needs to be coded by 0 and 1. |
mout |
The number of boosting iterations for which the error rate shall be printed. Defaults to the number of iterations boosting has been run for. |
grafik |
Logical, indicating whether a plot of the error rates is desired or not. |
Just verbatim and graphical output.
Marcel Dettling
bagboost, logitboost, adaboost, l2boost
data(leukemia, package = "boost") ## Dividing the leukemia dataset into training and test data xlearn <- leukemia.x[c(1:20, 34:38),] ylearn <- leukemia.y[c(1:20, 34:38)] xtest <- leukemia.x[21:33,] ytest <- leukemia.y[21:33] ## Classification with logitboost fit <- logitboost(xlearn, ylearn, xtest, presel=50, mfinal=20) summarize(fit, ytest)