treesize.rd

来自「是基于linux系统的C++程序」· RD 代码 · 共 44 行

RD
44
字号
\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 + =
减小字号Ctrl + -
显示快捷键?