-
Notifications
You must be signed in to change notification settings - Fork 1.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
Added ability to stop and resume hyperopt / automl runs #2108
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Thanks for the changes.
@@ -835,29 +835,25 @@ def test_frequency_vs_f1_vis_api(experiment_to_use): | |||
assert 2 == len(figure_cnt) | |||
|
|||
|
|||
def test_hyperopt_report_vis_api(hyperopt_results): | |||
def test_hyperopt_report_vis_api(hyperopt_results, tmpdir): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for cleaning up these tests!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
This PR adds two new API features that work with both hyperopt and automl:
should_stop_hyperopt
callback functionresume
parameter to automl and hyperopt entrypoint functionsThe idea is that the user can configure a callback that will trigger stopping of the entire job when some criteria is met. Then at a later point in time, the user can re-run the job and the state will be picked up from where it left off.
This PR also makes a small change to the output name of hyperopt results. Previously the directory name was randomized like
trainable_func_12345
. Now the directory name matches that of theexperiment_name
param, so that if the user calls the same hyperopt function twice, the default behavior will be to resume the previous job from where it left off. This can be disabled by settingresume=False
, which will create a new job and write trial results to the same directory.