Pathos 池打印神秘错误

Pathos pool prints mysterious error

我运行宁

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

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

当回归结果被 pickle 时(参见 issue raised on github),该错误消息来自 statsmodels

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