【问题标题】:GradientBoostingClassifier - How to get the node index of each treeGradientBoostingClassifier - 如何获取每棵树的节点索引
【发布时间】:2014-11-20 05:12:42
【问题描述】:

sklearn GradientBoostingClassifier中每棵树的节点索引能否检索到?

我知道对于 sklearn RandomForestClassifier 可以使用 apply 方法,但是如何使用 GradientBoostingClassifier 来完成呢?

谢谢,

R

【问题讨论】:

    标签: scikit-learn


    【解决方案1】:

    您可以使用每个DecisionTreeRegressortree_ 对象的apply 方法。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多