File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
optimas/generators/ax/developer Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -308,18 +308,18 @@ def ingest(self, results: List[dict]) -> None:
308
308
def _incorporate_external_data (self , trials : List [Trial ]) -> None :
309
309
"""Incorporate external data (e.g., from history) into experiment."""
310
310
# Get trial indices.
311
- # SH should have handling if trial_indexs are None...
311
+ # SH should have handling if ax_trial_ids are None...
312
312
trial_indices = []
313
313
for trial in trials :
314
- trial_indices .append (trial .trial_index )
314
+ trial_indices .append (trial .ax_trial_id )
315
315
trial_indices = np .unique (np .array (trial_indices ))
316
316
317
317
# Group trials by index.
318
318
grouped_trials = {}
319
319
for index in trial_indices :
320
320
grouped_trials [index ] = []
321
321
for trial in trials :
322
- grouped_trials [trial .trial_index ].append (trial )
322
+ grouped_trials [trial .ax_trial_id ].append (trial )
323
323
324
324
# Add trials to experiment.
325
325
for index in trial_indices :
You can’t perform that action at this time.
0 commit comments