@@ -173,7 +173,7 @@ def __init__(
173
173
self ._dataset_requirements : Optional [List [FitRequirement ]] = None
174
174
self ._metric : Optional [autoPyTorchMetric ] = None
175
175
self ._logger : Optional [PicklableClientLogger ] = None
176
- self .run_history : Optional [ RunHistory ] = None
176
+ self .run_history : Dict = {}
177
177
self .trajectory : Optional [List ] = None
178
178
self .dataset_name : Optional [str ] = None
179
179
self .cv_models_ : Dict = {}
@@ -688,6 +688,10 @@ def _do_traditional_prediction(self, num_run: int, time_left: int, func_eval_tim
688
688
"Please consider increasing the run time to further improve performance." )
689
689
break
690
690
691
+ self ._logger .debug ("Run history traditional: {}" .format (run_history ))
692
+ # add run history of traditional to api run history
693
+ self .run_history .update (run_history .data )
694
+ run_history .save_json (os .path .join (self ._backend .internals_directory , 'traditional_run_history.json' ))
691
695
return num_run
692
696
693
697
def _search (
@@ -958,8 +962,9 @@ def _search(
958
962
search_space_updates = self .search_space_updates
959
963
)
960
964
try :
961
- self . run_history , self .trajectory , budget_type = \
965
+ run_history , self .trajectory , budget_type = \
962
966
_proc_smac .run_smbo ()
967
+ self .run_history .update (run_history .data )
963
968
trajectory_filename = os .path .join (
964
969
self ._backend .get_smac_output_directory_for_run (self .seed ),
965
970
'trajectory.json' )
0 commit comments