Skip to content

Commit

Permalink
update search-space of gramacy and lee function
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonBlanke committed Jan 7, 2024
1 parent b926b10 commit 54b7d95
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions surfaces/mathematical_functions/gramacy_and_lee_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

0 comments on commit 54b7d95

Please sign in to comment.