-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Feature request: put the fit time in evaluated_individuals_ #780
Comments
This is a old known issue for python. The way CPython supports threading and asynchronous features has impacts on the accuracy of the timeout. For more background about this issue - that cannot be fixed - Please read Python gurus thoughts about Python threading, the GIL and context switching like these ones: http://pymotw.com/2/threading/ But I think it is a good idea to add this fit time into pipeline statistics. |
I think the relevant code is there Lines 1236 to 1239 in 507b45d
It seems you used the threading_timeoutable from stopit to handle the timeout. Why didn't you use instead the timeout parameter of joblib.Parallel? |
Oh, the timeout parameter of joblib.Parallel raises a timeout if any task lasts to long. Would joblib/joblib#366 allow for a more precise time control? |
Maybe, I will look into it. But two issues need attentions when using timeout in joblib:
|
|
It would be handy. GridSearchCV does it for example.
I also think I encountered some strange pipelines that did not stop after max_eval_time_mins, and this would help me to reproduce the issue.
The text was updated successfully, but these errors were encountered: