--
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/61ee6d6a-c7bf-46f2-8d21-58f9186e6aeeo%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/deap-users/CACiDVdF2ZuJaRsoY63qVMU%2Bd4SOCNq%3DzdPZs25sQaY7qh4T-6A%40mail.gmail.com.
https://github.com/DEAP/deap/blob/master/deap/algorithms.py#L85
Hi,I got this answer last year: https://stackoverflow.com/questions/58999820/python-deap-getting-the-pareto-front-for-every-generationIt seems to work.
On Fri, Jul 24, 2020 at 10:26 AM Ning An <anin...@gmail.com> wrote:
I know the final best individual at the end of the run can be easily obtained by using the function "hof.items[0]", but how can I obtain the best individuals at each generation? This is an old question and I found many discussions on google about it but did not find the solution yet. Thanks in advance!
On Fri, Jul 24, 2020 at 5:05 PM Ning An <anin...@gmail.com> wrote:
Hi all,--I am trying to use history class to get all the population individuals at each generation, but found an error as follows: AttributeError: 'Toolbox' object has no attribute 'population'The code I am using is here:hist = tools.History()toolbox.decorate("mate", hist.decorator)toolbox.decorate("mutate", hist.decorator)population = toolbox.population(n=300)hist.update(population)
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/deap-users/61ee6d6a-c7bf-46f2-8d21-58f9186e6aeeo%40googlegroups.com.
----
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.