GeneticAlgorithmPython icon indicating copy to clipboard operation
GeneticAlgorithmPython copied to clipboard

Source code of PyGAD, a Python 3 library for building the genetic algorithm and training machine learning algorithms (Keras & PyTorch).

Results 117 GeneticAlgorithmPython issues
Sort by recently updated
recently updated
newest added

Hello I'm new to genetic algorithms, and I'm trying to figure out if I can use dynamic num of genes to optimise number of parameters and their values in my...

question

This PR is adding the ability to suppress the plots from showing, if the user only wants write them to disk. For the best genes the range on the y-axis...

enhancement

~/pypi_local/pygad/pygad.py in run(self) 1261 self.last_generation_fitness = self.cal_pop_fitness() 1262 -> 1263 best_solution, best_solution_fitness, best_match_idx = self.best_solution(pop_fitness=self.last_generation_fitness) 1264 1265 # Appending the best solution in the current generation to the best_solutions list....

bug

I am a beginner in programming. May I ask, does this package have encoding and decoding process? For example, binary encoding. where can I see this?

question

Why does the fitness function need solution_idx as an input parameter if it doesn't do anything with it?

question

Hello, I do not think the np.flip in this line is necessary in the scramble_mutation as it only reverses the order of selected genes (they were already shuffled): https://github.com/ahmedfgad/GeneticAlgorithmPython/blob/158e53c4bd0a80449a9fbb147ac95be724179b71/pygad.py#L2074 IMO...

question

a whole class of problems such as topological partitioning or [bezier path finding](https://www.sciencedirect.com/science/article/abs/pii/S1877750317308906) naturally lend themselves to variable-length genetic alogorithms. the first GA I ever wrote was variable length. I...

enhancement

Hi, first of all, thank you for the excellent work you do. When experimenting for scientific research purposes, it is good practice to specify seeds for random number generators. This...

enhancement

# Related Issue # #71 # Description # - Previously, `fitness_func` takes only two arguments: solution and solution index. If extra parameters are required for the `fitness_func`, we are forced...

enhancement

First of all, thank you for the great repository. The thing we need to improve about pygad is args for fitness function. Currently, fitness function takes only two inputs: solution...

enhancement