Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
pygad-3.4.0.tar.gz | 2025-01-07 | 105.8 kB | |
pygad-3.4.0-py3-none-any.whl | 2025-01-07 | 86.8 kB | |
PyGAD-3.4.0 source code.tar.gz | 2025-01-07 | 19.7 MB | |
PyGAD-3.4.0 source code.zip | 2025-01-07 | 21.2 MB | |
README.md | 2025-01-07 | 3.1 kB | |
Totals: 5 Items | 41.1 MB | 0 |
- The
delay_after_gen
parameter is removed from thepygad.GA
class constructor. As a result, it is no longer an attribute of thepygad.GA
class instances. To add a delay after each generation, apply it inside theon_generation
callback. https://github.com/ahmedfgad/GeneticAlgorithmPython/issues/283 - In the
single_point_crossover()
method of thepygad.utils.crossover.Crossover
class, all the random crossover points are returned before thefor
loop. This is by calling thenumpy.random.randint()
function only once before the loop to generate all the K points (where K is the offspring size). This is compared to calling thenumpy.random.randint()
function inside thefor
loop K times, once for each individual offspring. - Bug fix in the
examples/example_custom_operators.py
script. https://github.com/ahmedfgad/GeneticAlgorithmPython/pull/285 - While making prediction using the
pygad.torchga.predict()
function, no gradients are calculated. - The
gene_type
parameter of thepygad.helper.unique.Unique.unique_int_gene_from_range()
method accepts the type of the current gene only instead of the full gene_type list. - Created a new method called
unique_float_gene_from_range()
inside thepygad.helper.unique.Unique
class to find a unique floating-point number from a range. - Fix a bug in the
pygad.helper.unique.Unique.unique_gene_by_space()
method to return the numeric value only instead of a NumPy array. - Refactoring the
pygad/helper/unique.py
script to remove duplicate codes and reformatting the docstrings. - The plot_pareto_front_curve() method added to the pygad.visualize.plot.Plot class to visualize the Pareto front for multi-objective problems. It only supports 2 objectives. https://github.com/ahmedfgad/GeneticAlgorithmPython/issues/279
- Fix a bug converting a nested NumPy array to a nested list. https://github.com/ahmedfgad/GeneticAlgorithmPython/issues/300
- The
Matplotlib
library is only imported when a method inside thepygad/visualize/plot.py
script is used. This is more efficient than usingimport matplotlib.pyplot
at the module level as this causes it to be imported whenpygad
is imported even when it is not needed. https://github.com/ahmedfgad/GeneticAlgorithmPython/issues/292 - Fix a bug when minus sign (-) is used inside the
stop_criteria
parameter (e.g.stop_criteria=["saturate_10", "reach_-0.5"]
). https://github.com/ahmedfgad/GeneticAlgorithmPython/issues/296 - Make sure
self.best_solutions
is a list of lists inside thecal_pop_fitness
method. https://github.com/ahmedfgad/GeneticAlgorithmPython/issues/293 - Fix a bug where the
cal_pop_fitness()
method was using theprevious_generation_fitness
attribute to return the parents fitness. This instance attribute was not using the fitness of the latest population, instead the fitness of the population before the last one. The issue is solved by updating theprevious_generation_fitness
attribute to the latest population fitness before the GA completes. https://github.com/ahmedfgad/GeneticAlgorithmPython/issues/291