Skip to content

Commit e7a39d8

Browse files
author
zimmerl
committed
Checkpoint
1 parent 3497199 commit e7a39d8

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

create_trajectory.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,8 @@ def minimize_trf(value):
326326
simulator.save_trajectory(save_file=os.path.join(bohb_rundir, "ensemble_trajectory.json"))
327327
simulator.save_trajectory(save_file=os.path.join(bohb_rundir, "ensemble_trajectory_test.json"), test=True)
328328

329-
incumbent_score_all_time, _ = simulator.get_incumbent_at_timestep(timestep=np.inf, use_val=False)
330-
incumbent_score_all_time_val, _ = simulator.get_incumbent_at_timestep(timestep=np.inf, use_val=True)
329+
incumbent_score_all_time, incumbent_ind_all_time = simulator.get_incumbent_at_timestep(timestep=np.inf, use_val=False)
330+
incumbent_score_all_time_val, incumbent_ind_val_all_time = simulator.get_incumbent_at_timestep(timestep=np.inf, use_val=True)
331331
incumbent_score_val, incumbent_ind_val = simulator.get_incumbent_at_timestep(timestep=3600, use_val=True)
332332

333333
score_at_3600, _ = simulator.get_score_at_timestep(timestep=3600)
@@ -352,10 +352,13 @@ def minimize_trf(value):
352352

353353
combined_score = simulator.predict_with_weights(list(ident_weight_dict.keys()), list(ident_weight_dict.values()))
354354

355-
print(identifier_weight_dicts)
356-
355+
weight_dict = {ident:weight for (ident, weight) in zip(simulator.model_identifiers[incumbent_ind_val_all_time], simulator.model_weights[incumbent_ind_val_all_time])}
356+
#print(simulator.model_identifiers[incumbent_ind_val_all_time])
357+
#print(simulator.model_weights[incumbent_ind_val_all_time])
357358
print(weight_dict)
358359

360+
print("All time incumbent val ind / score:", incumbent_ind_val_all_time, "/", incumbent_score_all_time_val)
361+
359362
print("Incumbent ind / score:", incumbent_ind_val, "/", incumbent_score_val)
360363

361364
results = {#"all_time_incumbent":incumbent_score_all_time,

0 commit comments

Comments
 (0)