neat-python icon indicating copy to clipboard operation
neat-python copied to clipboard

ZeroDivisionError: division by zero

Open vinny95922 opened this issue 5 years ago • 1 comments

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.

vinny95922 avatar Aug 10 '20 14:08 vinny95922

yah dude same issue plzz somone help

arnvv avatar Oct 26 '20 18:10 arnvv