Does this mean only a comparison of the estimates of each person for different cores for each generation or the parallel execution of generations?
The example displays the evaluate operation, so ...
fitnesses = toolbox.map(toolbox.evaluate, invalid_ind)
A single workflow hits the map: all invalid_ind are sorted in one queue, and when the kernel is available, the next person in the queue is assigned to this kernel to run the evaluate routine. When the queue is empty, all results are collected in a list and returned to fitnesses . From here the process continues on this lonely.
So:
- โYes,โ it displays each personโs score for different cores and
- "No," he does not run generations in parallel
At least this is what I guess when I asked this question . Depending on your application, of course, in my experience with DEAP and cProfile, the two best CPU time consumers rated people and copied.
source share