加快嵌套的交叉验证 [英] Speed-up nested cross-validation
本文介绍了加快嵌套的交叉验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
为了加快使用sklearn的嵌套交叉验证,是否因为不允许嵌套并行性而在内部或外部循环中修复n_jobs = -1更好?
In order to speed-up nested cross-validation with sklearn, is it better to fix n_jobs=-1 in inner or outer loop, since nested parallelism is not allowed ?
推荐答案
这似乎是一个悬而未决的问题,请参见例如在scikit-learn的github页面上打开问题.
This seems to be an an open question, see e.g. this open issue on scikit-learn's github page.
另一种方法是使用消息传递接口(MPI)来利用多个处理器,请参见例如此博客文章,使用 MPI4PY .
Another approach is to use a Message Passing Interface (MPI) to exploit multiple processors, see e.g. this blogpost using MPI4PY.
这篇关于加快嵌套的交叉验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文