Skip to content

Commit

Permalink
doc: correct the comments
Browse files Browse the repository at this point in the history
  • Loading branch information
CompRhys committed Nov 20, 2024
1 parent 570a2cb commit d75734f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/optim/test_optimize.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,13 @@ def test_optimize_acqf_joint(
cnt += 1
self.assertEqual(mock_gen_batch_initial_conditions.call_count, cnt)

# test case where provided initial conditions larger than raw_samples
# test case where provided initial conditions equal to raw_samples
candidates, acq_vals = optimize_acqf(
acq_function=mock_acq_function,
bounds=bounds,
q=q,
num_restarts=num_restarts,
raw_samples=3,
raw_samples=raw_samples,
options=options,
return_best_only=False,
batch_initial_conditions=torch.zeros(
Expand All @@ -222,7 +222,7 @@ def test_optimize_acqf_joint(
self.assertTrue(torch.equal(acq_vals, mock_acq_values))
self.assertEqual(mock_gen_batch_initial_conditions.call_count, cnt)

# test generation with provided initial conditions less than raw_samples
# test generation with provided initial conditions less than num_restarts
candidates, acq_vals = optimize_acqf(
acq_function=mock_acq_function,
bounds=bounds,
Expand Down

0 comments on commit d75734f

Please sign in to comment.