GeneticAlgorithmPython
GeneticAlgorithmPython copied to clipboard
Source code of PyGAD, a Python 3 library for building the genetic algorithm and training machine learning algorithms (Keras & PyTorch).
So, I played around with pygad a bit and realized that you only get the best solution of the previous generation. This is particularly noticeable with a stop criteria. I...
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...
Hi there, Thank you for your great toolbox! I have a question regarding caching of fitness values in pygad. It seems that any elite or kept parents fitness function will...
Hi, Does PyGAD support NSGA-III implementation for multi-objective optimization? Thank you
As mentioned, I have constructed an instance of PyGAD along with a custom fitness function. However, PyGAD does not return the best solution - that is, I have modified my...
Hi, I would like to ask if I want to integrate the ga to optimize the faster rcnn model's accuracy, could you explain a little on how i can modify...
Hello, I am using PyGAD version: 3.3.1 on Windows with python 3.10 within jupyter notebook. When I run my GA, I am getting the following user warning. This is not...
At the moment `from pygad import GA` causes matplotlib to be imported. Matplotlib is quite a heavy import that I'd rather avoid if possible when running some code in a...
During the `adaptive` mutation, the fitness function is called in https://github.com/ahmedfgad/GeneticAlgorithmPython/blob/0e8be9d61070df832ab89cae993e8827567d1184/pygad/utils/mutation.py#L473 In my application, this is a problem because I have to normalize some optimized probabilities before computing the fitness....
I've made three small changes to remove the UserWarning without suppressing all warnings (#283 ). 1. In the constructor, set the default value for `delay_after_gen` to None. 2. In the...