8000 DOC Ensures that KBinsDiscretizer passes numpydoc validation (#21016) · adrinjalali/scikit-learn@73dec98 · GitHub
[go: up one dir, main page]

Skip to content

Commit 73dec98

Browse files
genvalenadrinjalali
authored andcommitted
DOC Ensures that KBinsDiscretizer passes numpydoc validation (scikit-learn#21016)
1 parent 942b996 commit 73dec98

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

maint_tools/test_docstrings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
"HuberRegressor",
1717
"Isomap",
1818
"IterativeImputer",
19-
"KBinsDiscretizer",
2019
"KNNImputer",
2120
"LabelPropagation",
2221
"LabelSpreading",

sklearn/preprocessing/_discretization.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ class KBinsDiscretizer(TransformerMixin, BaseEstimator):
133133
[-0.5, 2.5, -2.5, -0.5],
134134
[ 0.5, 3.5, -1.5, 0.5],
135135
[ 0.5, 3.5, -1.5, 1.5]])
136-
137136
"""
138137

139138
def __init__(self, n_bins=5, *, encode="onehot", strategy="quantile", dtype=None):
@@ -157,7 +156,8 @@ def fit(self, X, y=None):
157156
158157
Returns
159158
-------
160-
self
159+
self : object
160+
Returns the instance itself.
161161
"""
162162
X = self._validate_data(X, dtype="numeric")
163163

0 commit comments

Comments
 (0)
0