rotationForest (version 0.1.3)

predict.rotationForest: Predict method for rotationForest objects

Description

Prediction of new data using rotationForest.

Usage

# S3 method for 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.

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

Run this code
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)

Run the code above in your browser using DataLab