CodeReclaimers / neat-python

Python implementation of the NEAT neuroevolution algorithm
BSD 3-Clause "New" or "Revised" License
1.4k stars 488 forks source link

Unable to get visualize.py to work with the example code given in evolve-feedforward.py #262

Open crsas opened 1 year ago

crsas commented 1 year ago

I attempt to run the code derived from evolve-feedforward.py as is, installing the visualize module on Pycharm, using neat-python 0.92, only to be met with AttributeError: module 'visualize' has no attribute 'net_draw'. I do not know how to fix this error, and have tried running visualize.py separately, but with no result other than a 0 error exit code.

Please help!

phpwutz commented 1 year ago

Hi, I ran into the same issue and found a solution, so here it goes: i had to copy the content of visualize.py ( https://raw.githubusercontent.com/CodeReclaimers/neat-python/master/examples/xor/visualize.py ) to the working directory and pip install graphviz then it worked :)