Skip to content

remove set_gp_params from maximize #382

Closed

Description

@bwheelz36

Describe the bug

In the maximize call, one can pass in gp parameters and acquisition function parameters:

    def maximize(self,
                 init_points=5,
                 n_iter=25,
                 acq='ucb',
                 kappa=2.576,
                 kappa_decay=1,
                 kappa_decay_delay=0,
                 xi=0.0,
                 **gp_params):
     
        self._prime_subscriptions()
        self.dispatch(Events.OPTIMIZATION_START)
        self._prime_queue(init_points)
        self.set_gp_params(**gp_params)

This will overwrite any previous calls to set_gp_params, which I don't think is correct behavior. For consistency with the rest of the code (particularly the suggest, probe, register paradigm), the gp params should only be set explicitly on the user end, and maximize should receive an already instantiated acquisition function (or None as default).

Activity

  1. bwheelz36 commented on Nov 25, 2022

    @bwheelz36
    CollaboratorAuthor

    other places to fix

    • explore/exploit notebook
    • advanced notebook
  2. added a commit that references this issue on Nov 25, 2022
    20b46ab
  3. bwheelz36 commented on Nov 25, 2022

    @bwheelz36
    CollaboratorAuthor

    note that this change may break backwards compatibility. We could also add in a warning if the user attempts to pass any of the previously available parameters?

  4. t-muser commented on Nov 25, 2022

    @t-muser
    Member

    Maybe the way to go would be to add a deprecation warning + have them take no effect for the next release and remove them in the release after the next?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions