【问题标题】:Pathos pool prints mysterious errorPathos 池打印出神秘错误
【发布时间】:2018-04-21 10:52:34
【问题描述】:

我在跑步

from pathos.multiprocessing import ProcessingPool
pool = ProcessingPool(4)
pool.map(...)

在运行时打印以下内容:

not in depth 2
not in depth 3
not in depth 1
not in depth 2
not in depth 3
not in depth 1
not in depth 2
not in depth 3
not in depth 1

这是什么意思?这是否意味着我可以采取任何措施来防止错误提高性能?

【问题讨论】:

    标签: python python-multiprocessing pathos


    【解决方案1】:

    该错误消息来自statsmodels,当时正在对回归结果进行腌制(请参阅issue raised on github)。

    ProcessingPool 在发送给工作人员时腌制输入,这就是为什么在映射我的函数时会出现此特定消息,但在迭代运行时不会出现。

    【讨论】:

      猜你喜欢
      • 2014-12-14
      • 2012-12-13
      • 2012-01-24
      • 2015-03-13
      • 2017-04-20
      • 2014-06-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多