Super-fast BART (Bayesian Additive Regression Trees) in Python
Return the average number of leaves per tree in a set of trees.
split_tree (UInt[Array, '*batch_shape max_num_leaves']) – The decision boundaries of the trees.
UInt[Array, '*batch_shape max_num_leaves']
where (Bool[Array, '*batch_shape'] | None, default: None) – Which trees to average over, all if None.
Bool[Array, '*batch_shape']
None
Float32[Array, ''] – The mean number of leaves across the trees, NaN if there are no trees.
Float32[Array, '']