Skip to content

Commit 4bffcde

Browse files
author
Sarah Krebs
committed
Allow multiple seeds (converters)
1 parent 9675832 commit 4bffcde

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

deepcave/runs/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -972,6 +972,9 @@ def get_incumbent(
972972
else:
973973
cost = avg_cost[0]
974974

975+
if cost is None:
976+
continue
977+
975978
if cost < min_cost:
976979
min_cost = cost
977980
best_config_id = config_id

deepcave/runs/converters/bohb.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ def from_path(cls, path: Union[Path, str]) -> "BOHBRun":
147147
costs=[cost], # Having only single objective here
148148
config=config,
149149
budget=budget,
150+
seed=-1,
150151
start_time=starttime,
151152
end_time=endtime,
152153
status=status,

deepcave/runs/converters/smac3v1.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,6 @@ def from_path(cls, path: Union[Path, str]) -> "SMAC3v1Run":
163163
if seed not in seeds:
164164
seeds.append(seed)
165165

166-
if len(seeds) > 1:
167-
raise RuntimeError("Multiple seeds are not supported.")
168-
169166
if first_starttime is None:
170167
first_starttime = starttime
171168

@@ -205,6 +202,7 @@ def from_path(cls, path: Union[Path, str]) -> "SMAC3v1Run":
205202
costs=[cost, time],
206203
config=config,
207204
budget=budget,
205+
seed=seed,
208206
start_time=starttime,
209207
end_time=endtime,
210208
status=status,

0 commit comments

Comments
 (0)