Speed-up nested cross-validation

大城市里の小女人 提交于 2020-01-25 07:19:28

问题


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 ?


回答1:


This seems to be an an open question, see e.g. this open issue on scikit-learn's github page.

Another approach is to use a Message Passing Interface (MPI) to exploit multiple processors, see e.g. this blogpost using MPI4PY.



来源:https://stackoverflow.com/questions/49629112/speed-up-nested-cross-validation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!