GeneticAlgorithmPython icon indicating copy to clipboard operation
GeneticAlgorithmPython copied to clipboard

Update all numpy.max to numpy.nanmax in pygad.py

Open jack-powers opened this issue 3 years ago • 0 comments

Replaced all numpy.max with numpy.nanmax to handle the calculation if nan values somehow get through. The specific line where I encountered this issue is line 3124, however, I also fixed the others for consistency.

jack-powers avatar Feb 10 '22 22:02 jack-powers