Skip to content

Commit

Permalink
DOC Ensures that KernelDensity passes numpydoc validation (scikit-lea…
Browse files Browse the repository at this point in the history
  • Loading branch information
genvalen authored Aug 22, 2021
1 parent d488d73 commit c63b8d8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion maint_tools/test_docstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
"KBinsDiscretizer",
"KNNImputer",
"KNeighborsTransformer",
"KernelDensity",
"KernelPCA",
"LabelBinarizer",
"LabelPropagation",
Expand Down
2 changes: 1 addition & 1 deletion sklearn/neighbors/_kde.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def fit(self, X, y=None, sample_weight=None):
Returns
-------
self : object
Returns instance of object.
Returns the instance itself.
"""
algorithm = self._choose_algorithm(self.algorithm, self.metric)
X = self._validate_data(X, order="C", dtype=DTYPE)
Expand Down

0 comments on commit c63b8d8

Please sign in to comment.