bartz.grove.is_leaf_used

bartz.grove.is_leaf_used(split_tree)[source]

Return a mask indicating the elements of TreeHeaps.leaf_tree in use.

Parameters:

split_tree (UInt[Array, '*batch_shape max_num_leaves']) – The decision boundaries of the trees.

Returns:

Bool[Array, '*batch_shape max_num_leaves'] – The mask marking the elements that hold the value of a leaf.