Преглед изворни кода

fixed a bug in pipeline selector

tanja пре 3 година
родитељ
комит
e15e09f770
1 измењених фајлова са 1 додато и 1 уклоњено
  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. "