Multiproces for deap
Теги: machine-learning genetic python evol
import multiprocessing
pool = multiprocessing.Pool()
toolbox.register("map", pool.map)
# Continue on with the evolutionary algorithm
Не забудь закрыть процесс
pool.close()
- [deap]
- [deap-docs]
- [evolution-methods]