Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image(graph.create()) problem with Example of GPLearn #64

Closed
jecs89 opened this issue Nov 26, 2017 · 2 comments
Closed

Image(graph.create()) problem with Example of GPLearn #64

jecs89 opened this issue Nov 26, 2017 · 2 comments

Comments

@jecs89
Copy link

jecs89 commented Nov 26, 2017

graph = pydotplus.graphviz.graph_from_dot_data(est_gp._program.export_graphviz())
print graph
Image(graph.create())

Error:
sub(add(-0.999, X1), mul(sub(X1, X0), add(X0, X1)))
<pydotplus.graphviz.Dot object at 0x7f3a3b2f56d0>
Traceback (most recent call last):
File "test.py", line 83, in
Image(graph.create())
File "/home/josimar/Envs/test/local/lib/python2.7/site-packages/pydotplus/graphviz.py", line 1960, in create
'GraphViz's executables not found')
pydotplus.graphviz.InvocationException: GraphViz's executables not found

@trevorstephens
Copy link
Owner

As the error states, pydotplus cannot find your Graphviz installation. Suggest you see that project or
try stackoverflow for assistance.

@jecs89
Copy link
Author

jecs89 commented Nov 27, 2017

I found a manual solution:
sudo apt-get install graphviz

graph.write('test.dot')
dot -Tps test.dot -o outfile.ps

You can the files here: https://github.com/jecs89/LearningEveryDay/tree/master/GP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants