I can export structure of a GBDT to a image with the tree.export_graphviz function:
``` Python3
from sklearn.datasets import load_iris
from sklearn import tree
from sklearn.ensemble import GradientBoostingClassifier
clf = GradientBoostingClassifier(n_estimators=1) # set to 1 for the sake of simplicity
iris = load_iris()
clf = clf.fit(iris.data, iris.target)
tree.export_graphviz(clf.estimators_[0,0], out_file='tree.dot')
check_call(['dot','-Tpng','tree.dot','-o','tree.png'])
```
I wondering what are the value
on the leafs? and How can I obtain them?
I have tried the apply
and decision_function
functions, neither works.