Skip to content

Commit

Permalink
test commented out to because gradients are no longer calculated by i…
Browse files Browse the repository at this point in the history
…ndividual acqfunc
  • Loading branch information
sqbl committed Dec 20, 2023
1 parent ea284db commit f9b866c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ProcessOptimizer/tests/test_acquisition.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def test_acquisition_api():
assert_raises(ValueError, method, rng.rand(10), gpr)


def check_gradient_correctness(X_new, model, acq_func, y_opt):
""" def check_gradient_correctness(X_new, model, acq_func, y_opt):
analytic_grad = gaussian_acquisition_1D(X_new, model, y_opt, acq_func)[1]
def num_grad_func(x):
Expand All @@ -118,7 +118,7 @@ def test_acquisition_gradient():
gpr.fit(X, y)
for acq_func in ["LCB", "PI", "EI"]:
check_gradient_correctness(X_new, gpr, acq_func, np.max(y))
check_gradient_correctness(X_new, gpr, acq_func, np.max(y)) """


def test_gaussian_acquisition_check_inputs():
Expand Down

0 comments on commit f9b866c

Please sign in to comment.