From 9a8402856dd347d9fa6786f637010b8a5efa7ea6 Mon Sep 17 00:00:00 2001 From: Shuhei Watanabe <47781922+nabenabe0928@users.noreply.github.com> Date: Sat, 14 Dec 2024 08:33:32 +0900 Subject: [PATCH] Update package/samplers/ctpe/components.py --- package/samplers/ctpe/components.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/samplers/ctpe/components.py b/package/samplers/ctpe/components.py index d3ce2aa..c2018d4 100644 --- a/package/samplers/ctpe/components.py +++ b/package/samplers/ctpe/components.py @@ -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)