Skip to content
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

A way to Save Bayesian Optimizer progress and continue later. #139

Open
wasilus opened this issue Mar 1, 2021 · 1 comment
Open

A way to Save Bayesian Optimizer progress and continue later. #139

wasilus opened this issue Mar 1, 2021 · 1 comment

Comments

@wasilus
Copy link

wasilus commented Mar 1, 2021

Hello,
I would like to use the Bayesian Optimizer for Hyperparameter tuning.
Is there a way to save the current status of the optimizer and then resume later. I could not find one...
Also I could not figure out a way to pass a cancellation token.
Great project.
Thank you.

@mdabros
Copy link
Owner

mdabros commented Mar 8, 2021

Hi @wasilus,

Currently there is no way of stopping the optimizer once it has been started. Might be a feature to add though since it would be a generally useful, maybe also for the other optimizers.

To get around this with the current implementation, you could log the parameters and resulting metric after each iteration. You can do this from the optimization objective function. Then use the "open loop" feature of the BayesianOptimizer passing in the previously logged results. You can see how this is done in this unit test:

public void BayesianOptimizer_OptimizeBest_MultipleParameters_Open_Loop_Using_PreviousResults()

Probably the best we can do with the current implementation.

Best regards
Mads

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants