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
On mac, use Brew to install graphviz and not pip, see links:
graphviz information: http://www.graphviz.org/download/
brew installation: https://brew.sh/
So typing the following in the terminal after you install brew should work:
brew install graphviz