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.89k stars 465 forks source link

Exception in GA, when setting adaptive mutation and batch fitness simultaneously #195

Open lavakin opened 1 year ago

lavakin commented 1 year ago

Hi, I'm trying to have adaptive mutation while computing the fitness in batches. Apparently, it works fine, until it computes all the batches in current population, but then it tries to input an 1D array with the length of the total number of genes.

Thanks!

ahmedfgad commented 1 year ago

Thanks for opening the issue. There was a bug and it is fixed. It will be available in the new release of the library.