Explorar o código

fixed a bug in pipeline selector

tanja %!s(int64=3) %!d(string=hai) anos
pai
achega
e15e09f770
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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. "