Super-fast BART (Bayesian Additive Regression Trees) in Python
Convert a tree to a human-readable string.
tree (TreeHeaps) – A single tree to format.
TreeHeaps
print_all (bool, default: False) – If True, also print the contents of unused node slots in the arrays.
bool
False
True
str – A string representation of the tree.
str