predict.rotationForest: Predict method for rotationForest objects

Description Usage Arguments Value Author(s) References See Also Examples

Description

Prediction of new data using rotationForest.

Usage

1
2
## 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

1
2
3
4
5
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)

Example output

rotationForest 0.1.3
Change log: rotationForestNews()
  [1] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
 [38] 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
 [75] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

rotationForest documentation built on May 2, 2019, 1:42 p.m.