📄 treesize.rd
字号:
\name{treesize}\alias{treesize}\title{Size of trees in an ensemble}\description{Size of trees (number of nodes) in and ensemble.}\usage{treesize(x, terminal=TRUE)}\arguments{ \item{x}{an object of class \code{randomForest}, which contains a \code{forest} component.} \item{terminal}{count terminal nodes only (\code{TRUE}) or all nodes (\code{FALSE}}}\value{A vector containing number of nodes for the trees in the\code{randomForest} object.}\note{ The \code{randomForest} object must contain the \code{forest} component; i.e., created with \code{randomForest(..., keep.forest=TRUE)}. }\seealso{\code{\link{randomForest}}}\author{Andy Liaw \email{andy\_liaw@merck.com}}\examples{data(iris)iris.rf <- randomForest(Species ~ ., iris)hist(treesize(iris.rf))}\keyword{regression}\keyword{classif}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -