Description Usage Arguments Value Examples
View source: R/terminal_nodes.R
Depth of each terminal node of a single tree in a ranger model. Note that root node has the id_node = 0.
1 | terminalNodesDepthPerTree(treelike)
|
treelike |
Output of 'ranger::treeInfo' |
data.table with two columns: id_node and depth
1 2 3 4 5 | ## Not run:
rf = ranger::ranger(Species ~ ., data = iris)
terminalNodesDepthPerTree(ranger::treeInfo(rf, 1))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.