Repository navigation
PyGAD 3.9.2
Release Date: October 16, 2026.
- Roulette wheel selection and stochastic universal selection no longer fail with fitness values near the float limits. In PyGAD 3.9.1, a fitness of
-sys.float_info.max, which some libraries give a rejected solution, made the shifted values overflow, and parent selection raisedIndexError. The values are now scaled before they are shifted or added.-infandNaNget no chance, solutions with+inffitness share every chance equally, and a population with no finite fitness raises a clearValueError. Ordinary non-negative fitness keeps exactly the same probabilities. - Regression tests cover the most negative float, huge values of both signs, huge positive values, infinite and missing values, and full runs with both selectors. The
pygad.utilssubmodule version is1.5.12.