From 54b7d9588e668304bb73d530121587058eac7b35 Mon Sep 17 00:00:00 2001 From: Simon Blanke Date: Sun, 7 Jan 2024 14:21:51 +0100 Subject: [PATCH] update search-space of gramacy and lee function --- surfaces/mathematical_functions/gramacy_and_lee_function.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/surfaces/mathematical_functions/gramacy_and_lee_function.py b/surfaces/mathematical_functions/gramacy_and_lee_function.py index b8c473e..52971ef 100644 --- a/surfaces/mathematical_functions/gramacy_and_lee_function.py +++ b/surfaces/mathematical_functions/gramacy_and_lee_function.py @@ -24,9 +24,11 @@ def __init__(self, metric="score", input_type="dictionary", sleep=0): def objective_function_dict(self, params): x = params["x0"] - loss = np.sin(10 * np.pi * x) / (2 * x) + (x - 1) ** 4 + loss = (np.sin(10 * np.pi * x) / (2 * x)) + (x - 1) ** 4 return self.return_metric(loss) def search_space(self, value_types="array"): - return super().search_space(min=0.5, max=2.5, step=0.1, value_types=value_types) + return super().search_space( + min=0.5, max=2.5, step=0.01, value_types=value_types + )