predict.rotationForest {rotationForest}R Documentation

Predict method for rotationForest objects

Description

Prediction of new data using rotationForest.

Usage

## S3 method for class 'rotationForest'
predict(object, newdata, all = FALSE, ...)

Arguments

object

An object of class rotationForest

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.

Value

A vector containing the response scores.

Author(s)

Michel Ballings and Dirk Van den Poel, Maintainer: Michel.Ballings@GMail.com

References

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

See Also

rotationForest

Examples

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)

[Package rotationForest version 0.1.3 Index]