Repository navigation
PyGAD-3.0.0
#172
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
This release has a major change where the fitness function accepts a mandatory parameter referring to the instance of the
pygad.GAclass.This is the release notes:
pygad.pymodule are moved to thepygad.utils,pygad.helper, andpygad.visualizesubmodules.pygad.utils.parent_selectionmodule has a class namedParentSelectionwhere all the parent selection operators exist. Thepygad.GAclass extends this class.pygad.utils.crossovermodule has a class namedCrossoverwhere all the crossover operators exist. Thepygad.GAclass extends this class.pygad.utils.mutationmodule has a class namedMutationwhere all the mutation operators exist. Thepygad.GAclass extends this class.pygad.helper.uniquemodule has a class namedUniquesome helper methods exist to solve duplicate genes and make sure every gene is unique. Thepygad.GAclass extends this class.pygad.visualize.plotmodule has a class namedPlotwhere all the methods that create plots exist. Thepygad.GAclass extends this class.loggingmodule to log the outputs to both the console and text file instead of using theprint()function. This is by assigning thelogging.Loggerto the newloggerparameter. Check the [Logging Outputs](https://pygad.readthedocs.io/en/latest/README_pygad_ReadTheDocs.html#logging-outputs) for more information.loggerto save the logger.fitness_funcparameter accepts a new parameter that refers to the instance of thepygad.GAclass. Check this for an example: [Use Functions and Methods to Build Fitness Function and Callbacks](https://pygad.readthedocs.io/en/latest/README_pygad_ReadTheDocs.html#use-functions-and-methods-to-build-fitness-and-callbacks). ask for new features about fitness_func #163initial_populationparameter.pop_fitnessparameter of thebest_solution()method.random_mutation_min_valandrandom_mutation_max_val) instead of using the parametersinit_range_lowandinit_range_high.summary()method returns the summary as a single-line string. Just log/print the returned string it to see it properly.callback_generationparameter is removed. Use theon_generationparameter instead.parallel_processingparameter with Keras and PyTorch. As Keras/PyTorch are not thread-safe, thepredict()method gives incorrect and weird results when more than 1 thread is used. Fitness function issues with Multiprocessing #145 Wrong results when when parallel processing is used. TorchGA#5 Wrong results when when parallel processing is used. KerasGA#6. Thanks to this [StackOverflow answer](https://stackoverflow.com/a/75606666/5426539).numpy.floatbyfloatin the 2 parent selection operators roulette wheel and stochastic universal. changed deprecated numpy.float to float #168This discussion was created from the release PyGAD-3.0.0.
All reactions