[scikit-learn] Estimator.predict() thread safety

Gael Varoquaux gael.varoquaux at normalesup.org
Fri Jun 17 11:21:41 EDT 2016


> I am typically careful with this, e.g., if my machine has 16 cores, I’d
> set feature union to n_jobs=3 and the gridsearch_cv to n_jobs=4 or so.
> Curious to hear what the scikit devs think about nesting calls
> n_jobs=-1; am I too conservative?

Nested parallelism doesn't work. It's a limitation of multiprocessing.


More information about the scikit-learn mailing list