Commit Graph

402 Commits

Author SHA1 Message Date
Adrin Jalali 76d763be80 DOC added to preprocessing docstring examples (#11752) 2018-08-07 15:24:05 +03:00
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
Ronan Lamy 5592a2eda9 [MRG] PyPy support for all but a couple of estimators (#11010) 2018-07-20 14:39:53 +10: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
Andreas Mueller b25e222328 MNT misc sphinx website build fixes and dead links (#11532) 2018-07-16 09:13:20 +08: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 e4d18845c3 preprocessing.discretization -> preprocessing._discretization 2018-07-10 09:47:20 +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 7caf1782dd FIX new parameter dtype after merging master 2018-06-14 18:29:18 +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
Guillaume Lemaitre b9f3758dfd MAINT add function to ignore nan in min/max sparse functions (#11196) 2018-06-07 06:57:30 +10:00
Daniel a6028fc059 BUG: Ensure OneHotEncoder outputs sparse matrix with given dtype (#11042) 2018-06-06 10:59:27 +02:00
Joel Nothman 7f29f1561f Whitespace 2018-06-04 22:24:17 +10: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
Nicholas Nadeau, P.Eng., AVS 3e26fc63be MAINT Fixing Typos (#11017) 2018-04-24 09:32:25 +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
SATISH J 2b1c5ef285 DOC Update an outdated docstring from sklearn.preprocessing.RobustScaler (#10940) 2018-04-09 21:30:18 +08:00
Loïc Estève 20661b5018
TST: only run doctests on numpy 1.14. (#10835)
Fix doctests due to numpy 1.14 formatting changes.
2018-03-27 07:44:40 +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
Alvaro Perez-Diaz 986cbda477 DOC: fix typo in StandardScaler docstring (#10779) 2018-03-08 15:59:41 +01:00
Loïc Estève a97e78b01a [MRG] MAINT: remove even more old scipy related code (#10721) 2018-03-01 07:52:10 +11: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