We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4db3fd9 commit 1d0bbf9Copy full SHA for 1d0bbf9
smac/acquisition/maximizer/local_search.py
@@ -237,17 +237,13 @@ def _get_init_points_from_previous_configs(
237
else:
238
additional_start_points = []
239
240
- init_points = []
241
- init_points_as_set: set[Configuration] = set()
242
- for cand in itertools.chain(
243
- previous_configs_sorted_by_cost,
244
- additional_start_points,
245
- ):
246
- if cand not in init_points_as_set:
247
- init_points.append(cand)
248
- init_points_as_set.add(cand)
249
-
250
- return init_points
+ init_points_as_set: set[Configuration] = set(
+ itertools.chain(
+ previous_configs_sorted_by_cost,
+ additional_start_points,
+ )
+ return list(init_points_as_set)
251
252
def _search(
253
self,
0 commit comments