You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Activity
ahmedfgad commentedon Jan 7, 2025
Keras is very slow due to the TensorFlow nature of building and executing the computational graph. If you try PyTorch, it is much faster.
There is no reason that prevents mutation or crossover to be used with training neural networks.