Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

grow

Add trees to an ensemble


Description

Add additional trees to an existing ensemble of trees.

Usage

## S3 method for class 'randomForest'
grow(x, how.many, ...)

Arguments

x

an object of class randomForest, which contains a forest component.

how.many

number of trees to add to the randomForest object.

...

currently ignored.

Value

An object of class randomForest, containing how.many additional trees.

Note

The confusion, err.rate, mse and rsq components (as well as the corresponding components in the test compnent, if exist) of the combined object will be NULL.

Author(s)

See Also

Examples

data(iris)
iris.rf <- randomForest(Species ~ ., iris, ntree=50, norm.votes=FALSE)
iris.rf <- grow(iris.rf, 50)
print(iris.rf)

randomForest

Breiman and Cutler's Random Forests for Classification and Regression

v4.6-14
GPL (>= 2)
Authors
Fortran original by Leo Breiman and Adele Cutler, R port by Andy Liaw and Matthew Wiener.
Initial release
2018-03-22

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.