sklearn.ensemble.RandomForestClassifier
has decision_path method. I was wondering how we can get the same output as decision_path in sklearn.ensemble.GradientBoostingClassifier
.
CodePudding user response:
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.