Skip to content

Commit

Permalink
DOC Remove outdated doc in KBinsDiscretizer (#13047)
Browse files Browse the repository at this point in the history
  • Loading branch information
qinhanmin2014 authored and jnothman committed Feb 19, 2019
1 parent c5122b6 commit 50be8b9
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions sklearn/preprocessing/_discretization.py
Expand Up @@ -28,12 +28,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 @@ -63,8 +58,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

0 comments on commit 50be8b9

Please sign in to comment.