File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
cerebros/simplecerebrosrandomsearch Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -621,14 +621,14 @@ def purge_models_except_best_model(self) -> None:
621621 files_str = [str (p ) for p in files_path_obj ]
622622 print ("Files in model cache:" )
623623 for file in files_str :
624- file_path = f"{ model_cache_path } /{ file } "
624+ model_file_path = f"{ model_cache_path } /{ file } "
625625 print (f" { model_file_path } " )
626- if file_path != self .best_model_path :
627- print (f"Removing: { file_path } " )
628- os .remove (file_path )
626+ if model_file_path != self .best_model_path :
627+ print (f"Removing: { model_file_path } " )
628+ os .remove (model_file_path )
629629 # Temp debug code:
630630 else :
631- print (f"Not removing { file_path } " )
631+ print (f"Not removing { model_file_path } " )
632632
633633
634634 def get_best_model (self , purge_model_storage_files = 0 ) -> tf .keras .Model :
You can’t perform that action at this time.
0 commit comments