Skip to content

Commit 0a3884f

Browse files
authored
fix: xi
1 parent 8f70b2d commit 0a3884f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bayes_opt/acquisition.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -612,8 +612,8 @@ def __init__(
612612
exploration_decay_delay: int | None = None,
613613
random_state: int | RandomState | None = None,
614614
) -> None:
615-
if xi <= 0:
616-
error_msg = "xi must be greater than 0."
615+
if xi < 0:
616+
error_msg = "xi must be greater than equal to 0."
617617
raise ValueError(error_msg)
618618
if exploration_decay is not None and not (0 < exploration_decay <= 1):
619619
error_msg = "exploration_decay must be greater than 0 and less than or equal to 1."
@@ -798,8 +798,8 @@ def __init__(
798798
exploration_decay_delay: int | None = None,
799799
random_state: int | RandomState | None = None,
800800
) -> None:
801-
if xi <= 0:
802-
error_msg = "xi must be greater than 0."
801+
if xi < 0:
802+
error_msg = "xi must be greater than equal to 0."
803803
raise ValueError(error_msg)
804804
if exploration_decay is not None and not (0 < exploration_decay <= 1):
805805
error_msg = "exploration_decay must be greater than 0 and less than or equal to 1."

0 commit comments

Comments
 (0)