How to visualize a Regression Tree in Python

前端 未结 2 1020
天涯浪人
天涯浪人 2021-01-07 08:26

I\'m looking to visualize a regression tree built using any of the ensemble methods in scikit learn (gradientboosting regressor, random forest regressor,bag

2条回答
  •  伪装坚强ぢ
    2021-01-07 08:50

    After much searching, I found software offered by Turi that models a regression tree, not to be confused with a decision tree. Hope this helps

    For what its worth, a regression tree looks like this:

    While a decision/classifier tree looks like this:

    And tho they look the same, the attribute needed to create this is tree_ which is only available to classifiers, not regressors.

提交回复
热议问题