8000 Revert "DOC Remove outdated doc in KBinsDiscretizer" · xhluca/scikit-learn@8165799 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8165799

Browse files
author
Xing
committed
Revert "DOC Remove outdated doc in KBinsDiscretizer"
This reverts commit 9d8b3f8.
1 parent 61aaaf8 commit 8165799

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sklearn/preprocessing/_discretization.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ def fit(self, X, y=None):
191191

192192
def _validate_n_bins(self, n_features):
193193
"""Returns n_bins_, the number of bins per feature.
194+
195+
Also ensures that ignored bins are zero.
194196
"""
195197
orig_bins = self.n_bins
196198
if isinstance(orig_bins, numbers.Number):

0 commit comments

Comments
 (0)
0