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 464 forks source link

pygad.kerasga #290

Open hiteshKjindal opened 7 months ago

hiteshKjindal commented 7 months ago

Hi why pygad.kerasga is much slower compared to pygad.gann? I am using the same model specification (1 Input layer, 2 hidden layers and 1 output layer). Why Keras model runtime is very high? Another question is why we are not using crossover and mutation in Keras example? Are we actually using Genetic algorithm here if both mutation and crossover are disabled? Please help to answer.