gianlucatruda / evocomp

Assignments for VU Masters course in Evolutionary Computing
GNU General Public License v3.0
0 stars 0 forks source link

Add statistics to evolution #8

Closed gianlucatruda closed 4 years ago

gianlucatruda commented 4 years ago

Stats we'd like to have at the end (preferably in a dataframe with generation as index):

gianlucatruda commented 4 years ago

Looks like we want to use deap.tools.Logbook and deap.tools.Statistics

The algorithm takes in a population and evolves it in place using the :meth:varAnd method. It returns the optimized population and a :class:~deap.tools.Logbook with the statistics of the evolution. The logbook will contain the generation number, the number of evalutions for each generation and the statistics if a :class:~deap.tools.Statistics is given as argument.

gianlucatruda commented 4 years ago

A :class:~deap.tools.HallOfFame object that will contain the best individuals, optional.

This could be useful too!

gianlucatruda commented 4 years ago

Completed. See PR #12