You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The use of n_jobs > 1 for small batch can slow down the prediction for forest models. This is probably due to the overhead incurred by using joblib (create thread, check system info, ...) which is dominate the runtime compared to the computations. This was reported originally in joblib/joblib#982.
A couple of ideas to solve this:
Set n_jobs=1 when the size of the batch is small.
Introduce a n_jobs_predict parameters that would default to 1/n_jobs for forests but that can be set separately.
The text was updated successfully, but these errors were encountered:
The use of
n_jobs > 1
for small batch can slow down the prediction for forest models. This is probably due to the overhead incurred by usingjoblib
(create thread, check system info, ...) which is dominate the runtime compared to the computations. This was reported originally in joblib/joblib#982.A couple of ideas to solve this:
n_jobs=1
when the size of the batch is small.n_jobs_predict
parameters that would default to1/n_jobs
for forests but that can be set separately.The text was updated successfully, but these errors were encountered: