什么相当于“最大深度"?在“R"包“游侠"中? [英] What is equivalent of "max depth" in the 'R' package "ranger"?
问题描述
其他随机森林工具具有限制特定分支上最大分裂深度的拨号".
Other random forest tools have the "dial" that limits max depth of splits on a particular branch.
例如,h2o.randomForest 具有max_depth".
h2o.randomForest has "max_depth", for example.
游侠"的版本是什么?
推荐答案
我对 h2o.randomForest
包不熟悉,但我对随机森林的大致理解是每棵树都会生长直到某个最小数量的数据点适合树的每个叶子.换句话说,一棵树将不断分裂,直到每个数据点都达到一定的分类级别.在标准的 randomForest
包中,有一个名为 nodesize
的参数来控制:
I'm not familiar with the h2o.randomForest
package, but my general understanding of random forests is that each tree will be grown until a certain minimum number of data points fit into each leaf of the tree. In other words, a tree will keep splitting until a certain level of classification of each data point has been achieved. In the standard randomForest
package, there is a parameter called nodesize
which controls this:
https://stats.stackexchange.com/questions/158583/what-does-node-size-refer-to-in-the-random-forest
ranger
包中的类似参数似乎是 min.node.size
.您可以将以上链接中的信息与文档进行比较说服自己他们都在讨论同一件事.
The analogous parameter in the ranger
package seems to be min.node.size
. You can compare the information in the link above with the documentation to convince yourself that they are both discussing the same thing.
这篇关于什么相当于“最大深度"?在“R"包“游侠"中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!