Skip to content

PyGAD-2.16.3

Compare
Choose a tag to compare
@ahmedfgad ahmedfgad released this 03 Feb 01:36
· 326 commits to master since this release
6ff4527

Changes in PyGAD 2.16.3

  1. A new instance attribute called previous_generation_fitness added in the pygad.GA class. It holds the fitness values of one generation before the fitness values saved in the last_generation_fitness.
  2. Issue in the cal_pop_fitness() method in getting the correct indices of the previous parents. This is solved by using the previous generation's fitness saved in the new attribute previous_generation_fitness to return the parents' fitness values. Thanks to Tobias Tischhauser (M.Sc. - [Mitarbeiter Institut EMS, Departement Technik, OST – Ostschweizer Fachhochschule, Switzerland](https://www.ost.ch/de/forschung-und-dienstleistungen/technik/systemtechnik/ems/team)) for detecting this bug.
  3. Validate the fitness value returned from the fitness function. An exception is raised if something is wrong. #67