I am wanting to visualize my decision tree applied to regression (only this plot for classification worked) what is going wrong that only the values appear but not the tree built itself?
Asked
Active
Viewed 941 times
1 Answers
0
For a simpler approach, try:
from sklearn import tree
from sklearn.tree import DecisionTreeClassifier
.
.
.
clf = DecisionTreeClassifier()
clf.fit(X,y)
clf.plot_tree()
Theplot_tree()
method uses matplotlib tools to make a tree visualizer.
For a fancier approach, you can plot the tree using graphviz. Check out this article about this topic:

Lucas Thimoteo
- 199
- 9