Parcourir la source

fixed a bug in pipeline selector

tanja il y a 3 ans
Parent
commit
e15e09f770
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      cdplib/pipeline_selector/PipelineSelector.py

+ 1 - 1
cdplib/pipeline_selector/PipelineSelector.py

@@ -189,7 +189,7 @@ class PipelineSelector(ABC):
             self.finished_tuning = False
             
             self._additional_metrics = additional_metrics
-            self._additional_averaging_funcs = additional_averaging_funcs
+            self._additional_averaging_funcs = additional_averaging_funcs or {}
 
         except Exception as e:
             err = ("Failed to initialize the class. "