treesize.r
来自「是基于linux系统的C++程序」· R 代码 · 共 7 行
R
7 行
treesize <- function(x, terminal=TRUE) { if(!inherits(x, "randomForest")) stop("This function only works for objects of class `randomForest'") if(is.null(x$forest)) stop("The object must contain the forest component") if(terminal) return((x$forest$ndbigtree+1)/2) else return(x$forest$ndbigtree)}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?