Home > Back-end >  The decision tree of graphvizm pydotplus problem
The decision tree of graphvizm pydotplus problem

Time:09-18

Decision tree Python 3.5 program
The from IPython. Display the import Image
The from sklearn import tree
The import pydotplus
The from pydotplus import graphviz
Dot_data=https://bbs.csdn.net/topics/tree.export_graphviz (CLF, out_file=None,
Feature_names=iris feature_names,
Class_names=iris target_names,
Filled=True, rounded=True,
Special_characters=True)
Graph=pydotplus. Graphviz. Graph_from_dot_data (dot_data)

Image (graph. Create_png ())

To run a "AttributeError: 'NoneType' object has no attribute 'write'"
  • Related