@@ -154,7 +154,7 @@ def get_hyperparameters(self):
154154 warn ("NNI is not detected. The code will continue to run without NNI." )
155155 return {}
156156
157- def update_params (self , params : dict ): # type: ignore
157+ def update_params (self , params : dict ):
158158 """
159159 Translate the parameter from monai bundle to meet NNI requirements.
160160
@@ -198,7 +198,7 @@ def set_score(self, acc):
198198 else :
199199 warn ("NNI is not detected. The code will continue to run without NNI." )
200200
201- def run_algo (self , obj_filename : str , output_folder : str = "." , template_path = None ) -> None : # type: ignore
201+ def run_algo (self , obj_filename : str , output_folder : str = "." , template_path = None ) -> None :
202202 """
203203 The python interface for NNI to run.
204204
@@ -333,7 +333,7 @@ def __call__(self, trial, obj_filename: str, output_folder: str = ".", template_
333333 self .run_algo (obj_filename , output_folder , template_path )
334334 return self .acc
335335
336- def update_params (self , params : dict ): # type: ignore
336+ def update_params (self , params : dict ):
337337 """
338338 Translate the parameter from monai bundle.
339339
@@ -368,7 +368,7 @@ def generate(self, output_folder: str = ".") -> None:
368368 ConfigParser .export_config_file (self .params , write_path )
369369 logger .info (write_path )
370370
371- def run_algo (self , obj_filename : str , output_folder : str = "." , template_path = None ) -> None : # type: ignore
371+ def run_algo (self , obj_filename : str , output_folder : str = "." , template_path = None ) -> None :
372372 """
373373 The python interface for NNI to run.
374374
0 commit comments