apply_nodes function

Return the indices of the points in the features that fall into each node of a trained tree model