6

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

Alexander Chervov
  • 616
  • 3
  • 7
  • 23
  • I have used [networkx](https://networkx.github.io/documentation/stable/reference/drawing.html) before, but it requires a fair bit of tuning – G. Anderson Oct 04 '18 at 20:18
  • You may find more answers [on this question](https://stackoverflow.com/questions/7670280/tree-plotting-in-python) as well – G. Anderson Oct 04 '18 at 20:19
  • Also here some info: https://stackoverflow.com/questions/20224526/how-to-extract-the-decision-rules-from-scikit-learn-decision-tree?noredirect=1&lq=1 – Alexander Chervov Oct 05 '18 at 07:08
  • 1
    This article may be useful for you: http://explained.ai/decision-tree-viz/index.html – avchauzov Oct 06 '18 at 10:22

0 Answers0