predict.rotationForest {rotationForest} | R Documentation |
Prediction of new data using rotationForest.
## S3 method for class 'rotationForest'
predict(object, newdata, all = FALSE, ...)
object |
An object of class |
newdata |
A data frame with the same predictors as in the training data. |
all |
Return the predictions per tree instead of the average. |
... |
Not used currently. |
A vector containing the response scores.
Michel Ballings and Dirk Van den Poel, Maintainer: Michel.Ballings@GMail.com
Rodriguez, J.J., Kuncheva, L.I., 2006. Rotation forest: A new classifier ensemble method. IEEE Trans. Pattern Anal. Mach. Intell. 28, 1619-1630. doi:10.1109/TPAMI.2006.211
data(iris)
y <- as.factor(ifelse(iris$Species[1:100]=="setosa",0,1))
x <- iris[1:100,-5]
rF <- rotationForest(x,y)
predict(object=rF,newdata=x)