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
Hello,
Thank you for your very good libs :-) In association with Celery Task Queue and MongoDB it is pure happiness!
Describe the bug
When I use the parameter n_jobs = 10, I get a warning message from joblib and the job is only done in one thread.
I think it's related to using Celery but I can't figure out how to fix the problem.
Expected behavior
I would like to be able to parallelize the calculation on my 12-core processor.
Actual behavior
[2020-12-31 13:22:33,736: WARNING/ForkPoolWorker-1] | Population Average | Best Individual |
[2020-12-31 13:22:33,736: WARNING/ForkPoolWorker-1] ---- ------------------------- ------------------------------------------ ----------
[2020-12-31 13:22:33,736: WARNING/ForkPoolWorker-1] Gen Length Fitness Length Fitness OOB Fitness Time Left
[2020-12-31 13:22:33,737: WARNING/ForkPoolWorker-1] /home/user/works/project/venv/lib/python3.8/site-packages/joblib/parallel.py:733: UserWarning: Loky-backed parallel loops cannot be called in a multiprocessing, setting n_jobs=1
I'm not familiar with how celery works, but joblib will do all the parallelisation under the hood, you just need to set n_job when initialising the estimator. Is this something you would expect to work with, say, a random forest in scikit learn?
Hello,
Thank you for your very good libs :-) In association with Celery Task Queue and MongoDB it is pure happiness!
Describe the bug
When I use the parameter n_jobs = 10, I get a warning message from joblib and the job is only done in one thread.
I think it's related to using Celery but I can't figure out how to fix the problem.
Expected behavior
I would like to be able to parallelize the calculation on my 12-core processor.
Actual behavior
Steps to reproduce the behavior
System information
Linux-5.4.0-58-generic-x86_64-with-glibc2.29
Python 3.8.5 (default, Jul 28 2020, 12:59:40)
[GCC 9.3.0]
NumPy 1.19.2
SciPy 1.5.4
Scikit-Learn 0.24.0
Joblib 1.0.0
gplearn 0.4.1
The text was updated successfully, but these errors were encountered: