Esempio n. 1
0
 def fit(self, X, y=None, **fit_params):
     f = getattr(self._base, "fit", None)
     if f is not None:
         filtered_params = remove_defaults_dict(fit_params)
         return f(X, y=y, **filtered_params)
     else:
         pass
Esempio n. 2
0
 def fit(self, X, y=None, **fit_params):
     if hasattr(self._base, "fit"):
         filtered_params = remove_defaults_dict(fit_params)
         return self._base.fit(X, y=y, **filtered_params)
     else:
         pass