Le 5 avr. 2020 à 09:53, Andreia Gualberto <andreiag...@gmail.com> a écrit :
How to know which generation is the best selected individual. The generation of HallOfFame [0] using deap with the easimple algorithm?
--
You received this message because you are subscribed to the Google Groups "deap-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to deap-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/deap-users/8ae8627c-9488-461e-9f60-a65b6965f9ca%40googlegroups.com.
You could track your logbook. The first generation with the fitness (min or max) equivalent to the best fitness is probably the generation at which appeared the best individual.
Le 5 avr. 2020 à 09:53, Andreia Gualberto <andreiag...@gmail.com> a écrit :
How to know which generation is the best selected individual. The generation of HallOfFame [0] using deap with the easimple algorithm?--
You received this message because you are subscribed to the Google Groups "deap-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to deap-...@googlegroups.com.
fitnesses = toolbox.map(toolbox.evaluate, invalid_ind)
for ind, fit in zip(invalid_ind, fitnesses):
ind.fitness.values = fit
ind.generation = gen
if halloffame is not None:
halloffame.update(population)