Issue
sklearn.ensemble.RandomForestClassifier
has decision_path method. I was wondering how we can get the same output as decision_path in sklearn.ensemble.GradientBoostingClassifier
.
Solution
Each individual decision tree has the decision_path
method, and the random forest just collects those together. You can, more or less, copy that code to get the same thing out of the GBM.
Answered By - Ben Reiniger
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.