Skip to content

Commit b97646d

Browse files
committed
fix: _update_params
1 parent 09b4010 commit b97646d

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

bayes_opt/acquisition.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,7 @@ def _l_bfgs_b_minimize(
280280
# point technicalities this is not always the case.
281281
return np.clip(x_min, bounds[:, 0], bounds[:, 1]), min_acq
282282

283-
@abc.abstractmethod
284-
def _update_params(self) -> None:
283+
def _update_params(self) -> None: # noqa: B027
285284
"""Update the parameters of the acquisition function."""
286285

287286

@@ -816,8 +815,6 @@ def suggest(
816815

817816
return x_max
818817

819-
def _update_params(self) -> None: ...
820-
821818

822819
class GPHedge(AcquisitionFunction):
823820
"""GPHedge acquisition function.
@@ -933,5 +930,3 @@ def suggest(
933930
self.previous_candidates = np.array(x_max)
934931
idx = self._sample_idx_from_softmax_gains()
935932
return x_max[idx]
936-
937-
def _update_params(self) -> None: ...

tests/test_acquisition.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ def mock_acq(x: np.ndarray):
5151
def base_acq(self, mean, std):
5252
pass
5353

54-
def _update_params(self) -> None: ...
55-
5654

5755
def test_base_acquisition():
5856
acq = acquisition.UpperConfidenceBound()

0 commit comments

Comments
 (0)