Skip to content

DOC Remove outdated doc in KBinsDiscretizer #13047

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 27, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions sklearn/preprocessing/_discretization.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,7 @@ class KBinsDiscretizer(BaseEstimator, TransformerMixin):
Parameters
----------
n_bins : int or array-like, shape (n_features,) (default=5)
The number of bins to produce. The intervals for the bins are
determined by the minimum and maximum of the input data.
Raises ValueError if ``n_bins < 2``.

If ``n_bins`` is an array, and there is an ignored feature at
index ``i``, ``n_bins[i]`` will be ignored.
The number of bins to produce. Raises ValueError if ``n_bins < 2``.

encode : {'onehot', 'onehot-dense', 'ordinal'}, (default='onehot')
Method used to encode the transformed result.
Expand Down Expand Up @@ -62,8 +57,7 @@ class KBinsDiscretizer(BaseEstimator, TransformerMixin):
Attributes
----------
n_bins_ : int array, shape (n_features,)
Number of bins per feature. An ignored feature at index ``i``
will have ``n_bins_[i] == 0``.
Number of bins per feature.

bin_edges_ : array of arrays, shape (n_features, )
The edges of each bin. Contain arrays of varying shapes ``(n_bins_, )``
Expand Down