What is equivalent of “max depth” in the 'R' package “ranger”?

两盒软妹~` 提交于 2020-06-27 20:59:53

问题


Other random forest tools have the "dial" that limits max depth of splits on a particular branch.

h2o.randomForest has "max_depth", for example.

What is the version of that for "ranger"?


回答1:


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

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.



来源:https://stackoverflow.com/questions/44291685/what-is-equivalent-of-max-depth-in-the-r-package-ranger

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!