Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ concurrency:

jobs:
build-docs-and-publish:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
permissions:
contents: write
steps:
Expand Down
2 changes: 1 addition & 1 deletion bayes_opt/acquisition.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def _l_bfgs_b_minimize(
continue

# Store it if better than previous minimum(maximum).
if min_acq is None or np.squeeze(res.fun) >= min_acq:
if min_acq is None or np.squeeze(res.fun) <= min_acq:
x_min = res.x
min_acq = np.squeeze(res.fun)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "bayesian-optimization"
version = "2.0.3"
version = "2.0.4"
description = "Bayesian Optimization package"
authors = ["Fernando Nogueira"]
license = "MIT"
Expand Down
4 changes: 2 additions & 2 deletions tests/test_constraint.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ def test_single_constraint_lower_upper(target_function, constraint_function):
y = res[:, 3]

# Check accuracy of approximation for sampled points
assert constraint_function(x, y) == pytest.approx(optimizer.constraint.approx(xy), rel=1e-5, abs=1e-5)
assert constraint_function(x, y) == pytest.approx(optimizer.constraint.approx(xy), rel=1e-4, abs=1e-4)
assert constraint_function(x, y) == pytest.approx(
optimizer.space.constraint_values[:-1], rel=1e-5, abs=1e-5
optimizer.space.constraint_values[:-1], rel=1e-4, abs=1e-4
)


Expand Down