Skip to content

Commit

Permalink
bug with small permutations
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikOrm committed Apr 15, 2024
1 parent 4b18383 commit a242d47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions hypermapper/bo/local_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ def get_parameter_neighbors(
)
neighbors.append(neighbor)
else:
for value in parameter.get_discrete_values():
if configuration[parameter_idx] != value:
for i in range(parameter.get_size()):
if configuration[parameter_idx] != i:
neighbor = configuration.clone()
neighbor[parameter_idx] = float(value)
neighbor[parameter_idx] = float(i)
neighbors.append(neighbor)

elif isinstance(parameter, OrdinalParameter):
Expand Down
2 changes: 1 addition & 1 deletion hypermapper/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@
"type": "number"
},
"local_search_random_points": {
"default": 30000,
"default": 5000,
"description": "number of random points for the multi-start local search used to optimize the acquisition functions.",
"type": "integer"
},
Expand Down

0 comments on commit a242d47

Please sign in to comment.