Skip to content

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

Description

@wasilus

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.

Activity

  1. mdabros commented on Mar 8, 2021

    @mdabros
    Owner

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions