From e9d56e5801e4ec7cbdec52c230bc0cec115afa68 Mon Sep 17 00:00:00 2001 From: Andrea Esuli Date: Tue, 28 Feb 2023 08:41:34 +0100 Subject: [PATCH] missing argument Added missing deep argument to get_params of LowRankLogisticRegression --- quapy/classification/methods.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quapy/classification/methods.py b/quapy/classification/methods.py index 01f4654..02825ab 100644 --- a/quapy/classification/methods.py +++ b/quapy/classification/methods.py @@ -21,14 +21,14 @@ class LowRankLogisticRegression(BaseEstimator): self.n_components = n_components self.learner = LogisticRegression(**kwargs) - def get_params(self): + def get_params(self, deep=True): """ Get hyper-parameters for this estimator. :return: a dictionary with parameter names mapped to their values """ params = {'n_components': self.n_components} - params.update(self.learner.get_params()) + params.update(self.learner.get_params(deep)) return params def set_params(self, **params):