Description Usage Arguments Details Value Examples
View source: R/terminal_nodes.R
Depth of each terminal node of all trees in a ranger model is returned as a three column tibble with column names: 'id_tree', 'id_node', 'depth'. Note that root node has the node_id = 0.
1 | terminalNodesDepth(model)
|
model |
A ranger model |
This function may be parallelized using a future backend.
A tibble with three columns: 'id_tree', 'id_node', 'depth'.
1 2 | rf = ranger::ranger(Species ~ ., data = iris, num.trees = 100)
terminalNodesDepth(rf)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.