📄 combine.rd
字号:
\name{combine}
\alias{combine}
\title{Combine Ensembles of Trees}
\description{
Combine two more more ensembles of trees into one.
}
\usage{
combine(...)
}
\arguments{
\item{...}{two or more objects of class \code{randomForest}, to be
combined into one.}
}
\value{
An object of class \code{randomForest}.
}
\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{randomForest}}, \code{\link{grow}}}
\author{Andy Liaw \email{andy\_liaw@merck.com}}
\examples{
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)
}
\keyword{regression}
\keyword{classif}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -