Skip to content

Commit

Permalink
Update package/samplers/ctpe/components.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nabenabe0928 authored Dec 13, 2024
1 parent 377710e commit 9a84028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/samplers/ctpe/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def __call__(self, x: int) -> int:
elif self._strategy == "sqrt":
n = int(np.ceil(self._beta * np.sqrt(x)))
else:
raise AssertionError("Should not reach.")
assert False, "Should not reach."

return min(n, 25)

Expand Down

0 comments on commit 9a84028

Please sign in to comment.