I try to run this example for decision tree learning, but get the following error message:
File \"coco.py\", line 18, in graph.write_pdf(\"iris.pdf
I had the same issue when installing pydot and graphviz with pip, then I found the answer here.
In particular, I first uninstalled pydot and graphviz which I separately installed using pip (using sudo pip uninstall pydot
and the same for graphviz
). Then, I run sudo apt-get install python-pydot
which fixed the issue.