Skip to content

Commit f5af523

Browse files
author
Sarah Krebs
committed
Allow multiple seeds (fix smac converters)
1 parent e3cda38 commit f5af523

File tree

12 files changed

+0
-10
lines changed

12 files changed

+0
-10
lines changed

deepcave/runs/converters/smac3v1.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ def from_path(cls, path: Union[Path, str]) -> "SMAC3v1Run":
9090
------
9191
RuntimeError
9292
Instances are not supported.
93-
RuntimeError
94-
Multiple Seeds are not supported.
9593
"""
9694
path = Path(path)
9795

@@ -142,7 +140,6 @@ def from_path(cls, path: Union[Path, str]) -> "SMAC3v1Run":
142140
instance_ids = []
143141

144142
first_starttime = None
145-
seeds = []
146143
for (config_id, instance_id, seed, budget), (
147144
cost,
148145
time,
@@ -160,9 +157,6 @@ def from_path(cls, path: Union[Path, str]) -> "SMAC3v1Run":
160157
config_id = str(config_id)
161158
config = configs[config_id]
162159

163-
if seed not in seeds:
164-
seeds.append(seed)
165-
166160
if first_starttime is None:
167161
first_starttime = starttime
168162

deepcave/runs/converters/smac3v2.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ def from_path(cls, path: Union[Path, str]) -> "SMAC3v2Run":
135135
instance_ids = []
136136

137137
first_starttime = None
138-
seeds = []
139138
for (
140139
config_id,
141140
instance_id,
@@ -157,9 +156,6 @@ def from_path(cls, path: Union[Path, str]) -> "SMAC3v2Run":
157156
config_id = str(config_id)
158157
config = configs[config_id]
159158

160-
if seed not in seeds:
161-
seeds.append(seed)
162-
163159
if first_starttime is None:
164160
first_starttime = starttime
165161

logs/SMAC3v2/mlp-nondeterministic/bcdb4a7cedc37b0caa608ab570d77c03/0/configspace.json renamed to logs/SMAC3v2/mlp-nondeterministic/run_1/0/configspace.json

File renamed without changes.

logs/SMAC3v2/mlp-nondeterministic/bcdb4a7cedc37b0caa608ab570d77c03/0/intensifier.json renamed to logs/SMAC3v2/mlp-nondeterministic/run_1/0/intensifier.json

File renamed without changes.

logs/SMAC3v2/mlp-nondeterministic/bcdb4a7cedc37b0caa608ab570d77c03/0/optimization.json renamed to logs/SMAC3v2/mlp-nondeterministic/run_1/0/optimization.json

File renamed without changes.

logs/SMAC3v2/mlp-nondeterministic/bcdb4a7cedc37b0caa608ab570d77c03/0/runhistory.json renamed to logs/SMAC3v2/mlp-nondeterministic/run_1/0/runhistory.json

File renamed without changes.

logs/SMAC3v2/mlp-nondeterministic/bcdb4a7cedc37b0caa608ab570d77c03/0/scenario.json renamed to logs/SMAC3v2/mlp-nondeterministic/run_1/0/scenario.json

File renamed without changes.

logs/SMAC3v2/mlp-nondeterministic/e262f9639f7cb897f1e597cb5b717d0c/0/configspace.json renamed to logs/SMAC3v2/mlp-nondeterministic/run_2/0/configspace.json

File renamed without changes.

logs/SMAC3v2/mlp-nondeterministic/e262f9639f7cb897f1e597cb5b717d0c/0/intensifier.json renamed to logs/SMAC3v2/mlp-nondeterministic/run_2/0/intensifier.json

File renamed without changes.

logs/SMAC3v2/mlp-nondeterministic/e262f9639f7cb897f1e597cb5b717d0c/0/optimization.json renamed to logs/SMAC3v2/mlp-nondeterministic/run_2/0/optimization.json

File renamed without changes.

0 commit comments

Comments
 (0)