From ec52f0ef1f8f61c8c381cb42b0180c4f7ab5b4dd Mon Sep 17 00:00:00 2001 From: Pinky-Chaudhary Date: Wed, 6 Oct 2021 11:53:09 +0530 Subject: [PATCH 1/2] Remove SplineTransformer from DOCSTRING_IGNORE_LIST --- maint_tools/test_docstrings.py | 1 - 1 file changed, 1 deletion(-) diff --git a/maint_tools/test_docstrings.py b/maint_tools/test_docstrings.py index 3388b7635d214..35ed4c515dd81 100644 --- a/maint_tools/test_docstrings.py +++ b/maint_tools/test_docstrings.py @@ -28,7 +28,6 @@ "SpectralBiclustering", "SpectralCoclustering", "SpectralEmbedding", - "SplineTransformer", "StackingRegressor", "TransformedTargetRegressor", ] From 4c97f628a572b6e1f2db4aa5eb30787bf1a9902b Mon Sep 17 00:00:00 2001 From: Pinky-Chaudhary Date: Wed, 6 Oct 2021 11:53:44 +0530 Subject: [PATCH 2/2] Fix numpydocs from SplineTransformer --- sklearn/preprocessing/_polynomial.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sklearn/preprocessing/_polynomial.py b/sklearn/preprocessing/_polynomial.py index 66d5a06773077..dbe78c0967582 100644 --- a/sklearn/preprocessing/_polynomial.py +++ b/sklearn/preprocessing/_polynomial.py @@ -693,6 +693,7 @@ def get_feature_names(self, input_features=None): Returns ------- output_feature_names : list of str of shape (n_output_features,) + Transformed feature names. """ n_splines = self.bsplines_[0].c.shape[0] if input_features is None: