Andreas Mueller
3a0b009804
don't use nextafter to define eps ( #11611 )
2018-07-24 11:09:46 +02:00
ZJ Poh
adddf00433
[MRG] np.ones -> np.full ( #11628 )
2018-07-23 09:49:01 +02:00
Giovanni Giuseppe Costa
61547de6b7
ENH KBinsDiscretizer : inverse_transform for ohe encoder ( #11505 )
2018-07-21 11:57:51 +08:00
Nicolas Hug
2d232acdeb
[MRG] Add Yeo-Johnson transform to PowerTransformer ( #11520 )
2018-07-20 22:32:12 +02:00
Andreas Mueller
b9330d96c9
pep8 whoops
2018-07-17 17:00:41 -05:00
Andreas Mueller
8e2c2aa35d
raise DeprecationWarnings and FutureWarnings as errors ( #11570 )
...
Towards #11252 .
In the end we'd like to make these errors so we can keep this cleaner in the future.
2018-07-17 15:31:45 -05:00
Nirvan Anjirbag
61fa3155da
[MRG] Add get_feature_names to OneHotEncoder ( #10198 )
...
**Reference Issues/PRs**
Fixes #10181
**What does this implement/fix? Explain your changes.**
Added function **get_feature_names()** to **CategoricalEncoder** class. This is in `data.py` under `sklearn.preprocessing`
<!--
Please be aware that we are a loose team of volunteers so patience is
necessary; assistance handling other issues is very welcome. We value
all user contributions, no matter how minor they are. If we are slow to
review, either the pull request needs some benchmarking, tinkering,
convincing, etc. or more likely the reviewers are simply busy. In either
case, we ask for your understanding during the review process.
For more information, see our FAQ on this topic:
http://scikit-learn.org/dev/faq.html#why-is-my-pull-request-not-getting-any-attention .
Thanks for contributing!
-->
2018-07-16 15:02:49 -05:00
Joel Nothman
7636606f47
Merge branch 'discrete' ( #9342 )
2018-07-12 10:27:35 +10:00
Hanmin Qin
e4089d1ea2
[MRG] ENH Remove ignored_features in KBinsDiscretizer ( #11467 )
2018-07-11 22:55:28 +02:00
Guillaume Lemaitre
a2b56453e2
ENH Passthrough DataFrame in FunctionTransformer ( #11043 )
2018-07-10 17:48:03 +08:00
Hanmin Qin
d1e26155e1
Merge branch 'master' into discrete
2018-07-10 10:02:46 +08:00
Joel Nothman
bb719e188c
Move _transform_selected helper to base.py
2018-07-10 09:52:25 +10:00
Joel Nothman
40d1f00c82
Merge branch 'master' into discrete
2018-07-10 09:46:03 +10:00
Tom Dupré la Tour
5a61af94e2
[MRG+2] Implement two non-uniform strategies for KBinsDiscretizer (discrete branch) ( #11272 )
2018-07-10 09:29:56 +10:00
Guillaume Lemaitre
f8adfa27ae
[MRG] Ignore and pass-through NaNs in RobustScaler and robust_scale ( #11308 )
2018-07-05 16:34:31 +02:00
Joris Van den Bossche
0b0bd9b369
[MRG] Use hashtable (python sets/dicts) for object dtype data in Encoders ( #10209 )
2018-07-03 09:51:07 +02:00
Joel Nothman
5a9ce9fe3f
CI fix scipy-dev build for good ( #11377 )
...
Also add commit flag [scipy-dev] to run scipy-dev build in Travis, which is very useful in a PR
to make sure that the scipy-dev passes.
2018-06-28 16:49:51 +02:00
Joris Van den Bossche
e93cde5739
FIX OneHot/OrdinalEncoder: correctly coerced dtype of passed categories ( #11347 )
2018-06-28 09:36:44 +10:00
Lucija Gregov
f43dd0e650
ENH Ignore and pass-through NaN values in MaxAbsScaler and maxabs_scale ( #11011 )
2018-06-23 19:15:01 +10:00
Guillaume Lemaitre
c1bc665958
ENH ignore NaNs in PowerTransformer ( #11306 )
2018-06-22 08:22:24 +10:00
Guillaume Lemaitre
5718466bb5
[MRG] ENH: Ignore NaNs in StandardScaler and scale ( #11206 )
2018-06-21 15:48:38 +02:00
Joris Van den Bossche
007aa710bd
FEA Refactor CategoricalEncoder into OneHotEncoder and OrdinalEncoder ( #10523 )
...
Deprecated some OneHotEncoder behaviour
2018-06-21 19:27:41 +10:00
Tom Dupré la Tour
e86191448b
FIX lazy merge
2018-06-14 20:37:05 +02:00
Tom Dupré la Tour
e2b6240310
Merge branch 'master' into 9342
...
Conflicts:
sklearn/preprocessing/data.py
sklearn/preprocessing/tests/test_data.py
2018-06-14 18:06:29 +02:00
Guillaume Lemaitre
a4f8e3d2a2
FIX: enforce consistency between dense and sparse cases in StandardScaler ( #11235 )
2018-06-14 19:18:39 +10:00
Guillaume Lemaitre
4272bbad0c
[MRG] EHN ignore nan in minmax_scale ( #11243 )
2018-06-12 15:09:16 +02:00
Roman Yurchak
e8d8b8eeb0
TST: parametrize unit tests ( #11074 )
...
yield tests are deprecated in pytest and will be removed in pytest 4.0.
They all have been replaced by parametrize.
2018-06-08 14:59:33 +02:00
Daniel
a6028fc059
BUG: Ensure OneHotEncoder outputs sparse matrix with given dtype ( #11042 )
2018-06-06 10:59:27 +02:00
Joel Nothman
f737fe6af3
Merge branch 'master' into discrete
2018-05-30 12:56:45 +10:00
rragundez
13c235359a
ENH MultiLabelBinarizer ignore unkown class in transform ( #10913 )
2018-05-06 21:06:09 +08:00
Guillaume Lemaitre
96a02f3934
[MRG+1] TST cover sparse matrix case for passing through NaN in transformer ( #11012 )
2018-04-27 08:02:39 +10:00
Lucija Gregov
f1aedf661a
[MRG+1] NaN handling MinMaxScaler ( #11005 )
2018-04-21 22:49:36 +02:00
Guillaume Lemaitre
c3548a8e29
[MRG] EHN handle NaN value in QuantileTransformer ( #10437 )
2018-04-21 19:06:10 +02:00
Joel Nothman
b43fce5a49
MNT Add sklearn.compose and move TransformedTargetRegressor to it ( #10719 )
2018-03-16 21:27:03 +08:00
Gaurav Dhingra
eed83790b0
ENH Change default gamma from 'auto' to 'scale' in SVC ( #10331 )
2018-03-10 10:39:21 +08:00
Loïc Estève
55da79f5fd
[MRG] MAINT: remove old scipy LBFGS scipy related code ( #10716 )
2018-02-28 09:00:34 +11:00
Kumar Ashutosh
71b29acbfb
[MRG+2] Moves Imputation out of Preprocessing ( #10483 )
2018-02-15 06:47:06 +11:00
Hanmin Qin
98eb09e920
Revert #10558 Deprecate axis parameter in imputer ( #10635 )
2018-02-14 18:55:03 +08:00
Hanmin Qin
52aaf82692
[MRG+1] Deprecate axis parameter in imputer ( #10558 )
2018-02-08 17:45:32 +11:00
ksemb
77418a0275
MAINT Fix escape sequences that are deprecated in Python 3.6 ( #10578 )
...
https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
2018-02-07 10:41:21 +11:00
Jiongyan Zhang
727314b2fe
[MRG+1] Fix FutureWarning in CategoricalEncoder due to np.issubdtype ( #10507 ) ( #10510 )
2018-01-23 07:39:21 +01:00
Mayur Kulkarni
87d96a2c2a
[MRG+1] Fixes #10458 : Make LabelEncoder work with empty list/array ( #10508 )
2018-01-23 13:53:49 +11:00
Joel Nothman
b94876a3a2
[MRG+1] ENH Polynomial features for sparse data ( #10452 )
2018-01-11 02:55:19 -08:00
Eric Chang
d8483dfee0
[MRG+1] ENH Add standardize flag to PowerTransformer ( #10316 )
2017-12-14 11:22:27 +01:00
Guillaume Lemaitre
4f710cdd08
FEA TransformedTargetRegressor ( #9041 )
...
Add a new meta-regressor which transforms y for training.
2017-12-14 09:31:03 +11:00
Hanmin Qin
ef57c34919
Merge branch 'master' into discrete
2017-12-06 14:21:49 +08:00
Eric Chang
62e9bb8def
Feature: Implement PowerTransformer ( #10210 )
2017-12-06 08:29:10 +11:00
Hanmin Qin
2249f8affd
comments from hlin177
2017-11-30 16:15:10 +08:00
Tom Dupré la Tour
430af307c5
DOC add a second example for KBinsDiscretizer ( #10195 )
2017-11-28 09:41:31 +11:00
Hanmin Qin
fb2a065ead
flake8 fix (a forced unrelated change)
2017-11-23 22:35:13 +08:00