1

Can someone point out to me why I get the division by zero error in the neat-python module when I set the default config file's "pop_size" to 1, the division error is given for the

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

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.

HoldOffHunger
  • 18,769
  • 10
  • 104
  • 133
vinny9592
  • 37
  • 5

0 Answers0