grow: Add trees to an ensemble

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

View source: R/grow.R

Description

Add additional trees to an existing ensemble of trees.

Usage

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

Andy Liaw andy\_liaw@merck.com

See Also

combine, randomForest

Examples

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

extendedForest documentation built on May 21, 2017, 12:29 a.m.

Search within the extendedForest package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.