bartz.grove.tree_actual_depth

bartz.grove.tree_actual_depth(split_tree)[source]

Measure the depth of the tree.

Parameters:

split_tree (UInt[Array, 'half_tree_size']) – The cutpoints of the decision rules.

Returns:

UInt[Array, '']The depth of the deepest leaf in the tree. The root is at depth 0.