R/terminal_nodes.R
terminalNodesDepthPerTree.Rd
Depth of each terminal node of a single tree in a ranger model. Note that root node has the id_node = 0.
terminalNodesDepthPerTree(treelike)
treelike | Output of `ranger::treeInfo` |
---|
data.table with two columns: id_node and depth