首页 > 解决方案 > Python DEAP 多处理示例

问题描述

我希望使用多处理来加速我的 DEAP 代码。(示例代码在Unable to speed up Python DEAP with Multiprocessing

有没有人有一个简单的代码可以使用多处理成功地加速 DEAP?

在 DEAP 中使用多处理的唯一示例代码https://github.com/DEAP/deap/blob/master/examples/ga/onemax_mp.py并没有真正加速或使用多核。

标签: pythonmultiprocessinggenetic-algorithmdeap

解决方案


推荐阅读