-
-
Notifications
You must be signed in to change notification settings - Fork 25.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UserWarning: A worker stopped while some jobs were given to the executor. This can be caused by a too short worker timeout or by a memory leak. "timeout or by a memory leak." #14626
Comments
Thanks for the report, yet it is not an error but a warning. |
I have this error frequently when using all processors or almost all processors. Anaconda IDEs have a little matter in memory allocation and I suspect that this has also to do with that. Of course it is not an error and the results are not alterd. |
|
In my case, exact same error, posted the fix on Stack Overflow:
|
@sharpe5 That's not quite the same because this is bubbling up from within sklearn - how would you apply that fix in the context of sklearn without hacking the codebase? |
Description
Fitting a GridSearchCV model with
n_jobs = -1
gives the UserWarning mentioned below, while forn_jobs = 1
it runs without any warningsSteps/Code to Reproduce
Expected Results
No error is thrown
Actual Results
/usr/local/lib/python3.6/dist-packages/joblib/externals/loky/process_executor.py:706: UserWarning: A worker stopped while some jobs were given to the executor. This can be caused by a too short worker timeout or by a memory leak. "timeout or by a memory leak.", UserWarning
Versions
System:
python: 3.6.8 (default, Jan 14 2019, 11:02:34) [GCC 8.0.1 20180414 (experimental) [trunk revision 259383]]
executable: /usr/bin/python3
machine: Linux-4.14.79+-x86_64-with-Ubuntu-18.04-bionic
Python deps:
pip: 19.2.1
setuptools: 41.0.1
sklearn: 0.21.3
numpy: 1.16.4
scipy: 1.3.0
Cython: 0.29.13
pandas: 0.24.2
The text was updated successfully, but these errors were encountered: