Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Commit

Permalink
Issue-244 i: Optimizer receives selected model as kwargs. Optimizatio…
Browse files Browse the repository at this point in the history
…n routine did not accept selected model.
  • Loading branch information
sdr2002 committed Jul 30, 2019
1 parent 90e446e commit e9b298e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion GPyOpt/methods/bayesian_optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,9 @@ def __init__(self, f, domain = None, constraints = None, cost_withGradients = No
# --- CHOOSE the acquisition optimizer_type

# This states how the discrete variables are handled (exact search or rounding)
kwargs.update({ 'model' : self.model })
self.acquisition_optimizer_type = acquisition_optimizer_type
self.acquisition_optimizer = AcquisitionOptimizer(self.space, self.acquisition_optimizer_type, model=self.model) ## more arguments may come here
self.acquisition_optimizer = AcquisitionOptimizer(self.space, self.acquisition_optimizer_type, **kwargs) ## more arguments may come here

# --- CHOOSE acquisition function. If an instance of an acquisition is passed (possibly user defined), it is used.
self.acquisition_type = acquisition_type
Expand Down

0 comments on commit e9b298e

Please sign in to comment.