1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
\name{grow}
\alias{grow}
\alias{grow.default}
\alias{grow.randomForest}
\title{Add trees to an ensemble}
\description{
Add additional trees to an existing ensemble of trees.
}
\usage{
\method{grow}{randomForest}(x, how.many, ...)
}
\arguments{
\item{x}{an object of class \code{randomForest}, which contains a
\code{forest} component.}
\item{how.many}{number of trees to add to the \code{randomForest}
object.}
\item{...}{currently ignored.}
}
\value{
An object of class \code{randomForest}, containing \code{how.many}
additional trees.
}
\note{
The \code{confusion}, \code{err.rate}, \code{mse} and \code{rsq}
components (as well as the corresponding components in the \code{test}
compnent, if exist) of the combined object will be \code{NULL}.
}
\seealso{\code{\link{combine}}, \code{\link{randomForest}}}
\author{Andy Liaw \email{andy_liaw@merck.com}}
\examples{
data(iris)
iris.rf <- randomForest(Species ~ ., iris, ntree=50, norm.votes=FALSE)
iris.rf <- grow(iris.rf, 50)
print(iris.rf)
}
\keyword{regression}
\keyword{classif}
|