Skip to content

PyGAD 3.9.2

Latest

Choose a tag to compare

@github-actions github-actions released this 16 Oct 21:08
· 1 commit to master since this release
02069ae

PyGAD 3.9.2

Release Date: October 16, 2026.

  1. 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 raised IndexError. The values are now scaled before they are shifted or added. -inf and NaN get no chance, solutions with +inf fitness share every chance equally, and a population with no finite fitness raises a clear ValueError. Ordinary non-negative fitness keeps exactly the same probabilities.
  2. 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.utils submodule version is 1.5.12.