1
0
Fork 0

Merge pull request #18 from aesuli/aesuli-patch-1

Missing 'deep' argument
This commit is contained in:
Alejandro Moreo Fernandez 2023-02-28 10:27:41 +01:00 committed by GitHub
commit d1e11f8a6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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):