Visualizing decision tree not using graphviz/web

痞子三分冷 提交于 2019-12-23 19:19:19

问题


Due to some restriction I cannot use graphviz , webgraphviz.com to visualize decision tree (work network is closed from the other world).

Question: Is there some alternative utilite or some Python code for at least very simple visualization may be just ASCII visualization of decision tree (python/sklearn) ?

I mean, I can use sklearn in particular: tree.export_graphviz( ) which produces text file with tree structure, from which one can read a tree, but doing it by "eyes" is not pleasant ...

PS Pay attention that

graph = pydotplus.graph_from_dot_data(dot_data.getvalue())  
Image(graph.create_png())

will NOT work, since create_png uses implicitly graphviz

来源:https://stackoverflow.com/questions/52654280/visualizing-decision-tree-not-using-graphviz-web

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!