CodeReclaimers / neat-python

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

ZeroDivisionError: division by zero #206

Open vinny95922 opened 4 years ago

vinny95922 commented 4 years ago

neat/mathutil.py in mean, in line 9,
return sum(map(float, values)) / len(values), ZeroDivisionError: division by zero.

If pop_size is set to 1 I get the above error.

If I set pop_size to anything above 1, there's no error but I do occasionally get a muddle up in my results as I've written my code to only run 1 genome at a time which is what I need.

In advance thank you very much for your time, I'm looking forward with your replies.

arnvv commented 3 years ago

yah dude same issue plzz somone help