Combine two more more ensembles of trees into one.
combine(...)
An object of class randomForest
.
two or more objects of class randomForest
, to be
combined into one.
Andy Liaw andy_liaw@merck.com
randomForest
, grow
data(iris)
rf1 <- randomForest(Species ~ ., iris, ntree=50, norm.votes=FALSE)
rf2 <- randomForest(Species ~ ., iris, ntree=50, norm.votes=FALSE)
rf3 <- randomForest(Species ~ ., iris, ntree=50, norm.votes=FALSE)
rf.all <- combine(rf1, rf2, rf3)
print(rf.all)
Run the code above in your browser using DataLab