Skip to content

Commit 4592367

Browse files
SamuelGabrielfacebook-github-bot
authored andcommitted
Fixing Typo In test_optimize_mixed (#2911)
Summary: Pull Request resolved: #2911 Fix naming typo in text Reviewed By: Balandat Differential Revision: D77807134 fbshipit-source-id: 6b7f5a935b261bb5289f65db5dc3d85aa27073cf
1 parent b7af93f commit 4592367

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/optim/test_optimize_mixed.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -517,10 +517,10 @@ def test_continuous_step(self):
517517
X[b_i, cont_dims] = torch.rand(d_cont, device=self.device)
518518

519519
best_f = model(X).min()
520-
ei = PosteriorMean(model)
520+
mean_as_acq = PosteriorMean(model)
521521
X_new, ei_val = continuous_step(
522522
opt_inputs=_make_opt_inputs(
523-
acq_function=ei,
523+
acq_function=mean_as_acq,
524524
bounds=bounds,
525525
options={"maxiter_continuous": 32},
526526
return_best_only=False,
@@ -542,7 +542,7 @@ def test_continuous_step(self):
542542
X_[:, :2] = 1.0 # To satisfy the constraint.
543543
X_new, ei_val = continuous_step(
544544
opt_inputs=_make_opt_inputs(
545-
acq_function=ei,
545+
acq_function=mean_as_acq,
546546
bounds=bounds,
547547
options={"maxiter_continuous": 32},
548548
fixed_features={fixed_binary: 1, fixed_cont: 0.5},

0 commit comments

Comments
 (0)