Home > OS >  Getting decision path in GradientBoostingClassifier
Getting decision path in GradientBoostingClassifier

Time:08-03

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.

  • Related