ahmedfgad / GeneticAlgorithmPython

Source code of PyGAD, a Python 3 library for building the genetic algorithm and training machine learning algorithms (Keras & PyTorch).
https://pygad.readthedocs.io
BSD 3-Clause "New" or "Revised" License
1.79k stars 451 forks source link

`pareto_fronts` is from previous generation #275

Open kaurao opened 4 months ago

kaurao commented 4 months ago

The ga_instance.pareto_fronts available after ga_instance.run() is calculated on ga_instance.previous_generation_fitness, it should be updated to reflect ga_instance.last_generation_fitness.

ahmedfgad commented 4 months ago

Thank you! This issue is resolved in a recent commit. Please update to PyGAD 3.3.1.