Is there a way to get the path down the tree for a prediction from the decision tree? I can import the implementation, copy/paste the predict method and add nodes to a list, but that's not ideal.
Thank you for creating the issue.
There is no such a path right now, but it can be useful, I will consider adding this feature to the DecisionTreeClassifier.
Is there a way to get the path down the tree for a prediction from the decision tree? I can import the implementation, copy/paste the predict method and add nodes to a list, but that's not ideal.