1import graphviz
2# DOT data
3dot_data = tree.export_graphviz(clf, out_file=None,
4 feature_names=iris.feature_names,
5 class_names=iris.target_names,
6 filled=True)
7
8# Draw graph
9graph = graphviz.Source(dot_data, format="png")
10graph
11