Skip to content

Commit e2905ed

Browse files
author
Sarah Krebs
committed
Allow multiple seeds (groups)
1 parent fb9c871 commit e2905ed

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

deepcave/runs/group.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,19 @@ def __init__(self, name: str, runs: List[AbstractRun]):
6262
return
6363

6464
try:
65-
attributes = check_equality(self.runs, seeds=True)
65+
attributes = check_equality(self.runs)
6666
# abstract run requires meta to contain budgets / objectives
6767
self.meta = {
6868
"budgets": attributes["budgets"],
6969
"objectives": attributes["objectives"],
70-
"seeds": attributes["seeds"],
7170
}
71+
self.meta["seeds"] = list(
72+
set([seed for run in self.runs for seed in run.meta["seeds"].copy()])
73+
)
7274
self.configspace = attributes["configspace"]
7375
self.objectives = attributes["objectives"]
7476
self.budgets = attributes["budgets"]
75-
self.seeds = attributes["seeds"]
77+
self.seeds = self.meta["seeds"]
7678

7779
# New config ids are needed
7880
current_config_id = 0

0 commit comments

Comments
 (0)