Explorar o código

fixed bug in type declaration

tanja %!s(int64=3) %!d(string=hai) anos
pai
achega
96d7748a5a
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      cdplib/hyperopt/HyperoptPipelineSelector.py

+ 2 - 2
cdplib/hyperopt/HyperoptPipelineSelector.py

@@ -183,7 +183,7 @@ class HyperoptPipelineSelector(PipelineSelector):
 
             self._logger.log_and_raise_error(err)
 
-    def _get_space_element_from_trial(self, trial: Dict)\
+    def _get_space_element_from_trial(self, trial: dict)\
             -> Union[Dict[SpaceElementType], None]:
         """
         Hyperopt trials object does not contain the space
@@ -255,7 +255,7 @@ class HyperoptPipelineSelector(PipelineSelector):
             self._logger.log_and_raise_error(err)
 
     @property
-    def best_trial(self) -> Union[Dict, None]:
+    def best_trial(self) -> Union[dict, None]:
         """
         :return: dictionary with the summary of the best trial
             and space element (name, pipeline, params)