Commit Graph

179 Commits

Author SHA1 Message Date
Hanmin Qin 31cef3b8f2 DOC More details about the attributes in MinMaxScaler (#13029) 2019-01-30 11:08:41 +11:00
MarcoGorelli eab7e8b155 DOC Mention StandardScaler ddof (#12950) 2019-01-14 21:25:38 +08:00
Roman Yurchak 701144559f MAINT Remove unused utils.fixes (#12928)
This continues the work done in https://github.com/scikit-learn/scikit-learn/pull/12639 on dropping the python 2 support by,
 - ~~removing unnecessary `from __future__` imports~~
 - removing unused `sklearn.utils.fixes` assuming we can agree in https://github.com/scikit-learn/scikit-learn/issues/12927 that `sklearn.utils.fixes` are private as was stated e.g. in https://github.com/scikit-learn/scikit-learn/issues/6616#issuecomment-245109979
2019-01-08 12:43:49 +11:00
Roman Yurchak acb8106472 MNT Use list and dict comprehension (#12668) 2019-01-08 09:32:34 +11:00
Andreas Mueller 952ef6637a MRG Drop legacy python / remove six dependencies (#12639) 2019-01-03 15:50:05 +02:00
Dowon 0e5feb6bf7 DOC improving import convenience in class examples (#12846) 2018-12-23 09:37:43 +08:00
Nicolas Hug a50c03f975 [MRG] Add pprint for estimators - continued (#11705)
* add pprint for estimators

* strip color from length, add color option

* Minor cleaning, fixes, factoring and docs

* Added some basic tests

* Fixed line length issue

* fixed flake8 and added visual test for review

* Fixed test

* Fixed Python 2 issues (inspect.signature import)

* Trying to fix flake8 again

* Added special repr for functions

* Added some other visual tests

* Changed _format_function in to _format_callable

because callable() returns True also for class objects (which we want to
reprensent with their name as well anyway)

* Consistent output in Python 2 and 3

* WIP

* Now using the builtin pprint module

* pep8

* Added changed_only param

* Fixed printing when string would fit in less than line width

* Fixed printing of steps parameter

* Fixed changed_only param for short estimators

* fixed pep8

* Added some more description in docstring

* changed_only is now an option from set_config()

* Put _pprint.py into sklearn/utils, added tests

* Added doctest NORMALIZE_WHITESPACE where needed

* Fixed tests

* fix test-doc

* fixing test that passed before....

* Fixed tests

* Added test for changed_only and long lines

* typo

* Added authors names

* Added license file

* Added ellipsis based on number of elements in sequence + added increasinly aggressive repr strategies

* Updated whatsnew

* dont use increaingly aggressive strategy

* Fixed tests

* Removed LICENSE file and put license text in _pprint.py

* fixed test_base

* Sorted parameters dictionary for consistent output in 3.5

* Actually using OrderedDict...

* Addressed comments

* Added test for NaN changed parameter

* Update whatsnew

* Added example to set_config()

* Removed example

* Added example in gallery

* Spelling
2018-12-19 23:48:21 -05:00
Adrin Jalali 2bd87f6ed8 Remove python < 3.5 from CI (#12746) 2018-12-14 10:53:12 +01:00
Albert Thomas 3a884c5ee5 DOC change "cumulative density" to "cumulative distribution" (#12754) 2018-12-11 21:02:26 +01:00
Olivier Grisel 0b85b0a922 FIX use ellipsis in PowerTransformer doctest (#12595) 2018-11-15 11:31:16 +01:00
Nicolas Hug 042843a2dd FIX YeoJohnson transform lambda bounds (#12522) 2018-11-08 18:57:40 +11:00
Tulio Casagrande a028416609 DOC Add details to StandardScaler calculation (#12446) 2018-11-04 23:12:26 +08:00
Olivier Grisel e67e30cec2 Fix numpy vstack on generator expressions (#12467)
* Workaround vstack issue with genxp

* Use list comprehensions instead of genexps with np.vstack

* Add changelog entry.
2018-10-29 11:40:05 -04:00
Matthew Roeschke 5af272ac61 MNT Remove unused variables (#12230) 2018-10-22 12:48:40 +11:00
Andrew Nystrom a5fa7d3e6f [MRG] Fast PolynomialFeatures on CSR matrices (#12197) 2018-10-19 10:55:14 +02:00
Corey Levinson 53069c209c DOC Change i.e. to e.g. in MinMaxScaler (#12415) 2018-10-18 23:56:05 +02:00
Andreas Mueller 0f94f2962b
MNT simple deprecations and removals for 0.21 (#12238)
Part of #11992.
These were all the things that seemed pretty straight-forward. It's actually a bit bulky but should still be easy to review, hopefully.
2018-10-11 14:56:37 -04:00
Eric Chang bbb0d935f5 [MRG] FIX Update power_transform docstring and add FutureWarning (#12317) 2018-10-10 07:53:26 +02:00
Denis Kataev b020f62250 MNT Apply pep8 to docs code (#12275) 2018-10-05 22:51:42 +08:00
Tom Dupré la Tour 3e5777a0bd [MRG] Fast PolynomialFeatures on dense arrays (#12251) 2018-10-03 19:06:07 +02:00
Adrin Jalali 76d763be80 DOC added to preprocessing docstring examples (#11752) 2018-08-07 15:24:05 +03:00
ZJ Poh adddf00433 [MRG] np.ones -> np.full (#11628) 2018-07-23 09:49:01 +02: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
Guillaume Lemaitre f8adfa27ae [MRG] Ignore and pass-through NaNs in RobustScaler and robust_scale (#11308) 2018-07-05 16:34:31 +02: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
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
Daniel a6028fc059 BUG: Ensure OneHotEncoder outputs sparse matrix with given dtype (#11042) 2018-06-06 10:59:27 +02: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
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
Jiongyan Zhang 727314b2fe [MRG+1] Fix FutureWarning in CategoricalEncoder due to np.issubdtype (#10507) (#10510) 2018-01-23 07:39:21 +01:00
Joel Nothman b94876a3a2 [MRG+1] ENH Polynomial features for sparse data (#10452) 2018-01-11 02:55:19 -08:00
Joel Nothman c3bdc0a89a
DOC clean up assorted type specifications (#10441) 2018-01-11 09:11:17 +11:00
Nihar Sheth cec3458b03 DOC Fix broken links in docs (#10353) 2017-12-22 18:23:29 +01:00
Eric Chang d8483dfee0 [MRG+1] ENH Add standardize flag to PowerTransformer (#10316) 2017-12-14 11:22:27 +01:00
Eric Chang 62e9bb8def Feature: Implement PowerTransformer (#10210) 2017-12-06 08:29:10 +11:00
Joris Van den Bossche a2ebb8cfd2 ENH: new CategoricalEncoder class (#9151) 2017-11-21 20:03:41 +11:00
Guillaume Lemaitre 89b02af431 [MRG+1] EHN Accept 1D array for preprocessing functions and update doc (#9596)
* EHN/TST robust_scale accepts 1D array

* DOC update doc for preprocessing functions
2017-08-22 19:08:47 +03:00
Naoya Kanai f6c7080ee5 DOC Clarify RobustScaler behavior with sparse input (#8858) 2017-07-29 22:23:46 +10:00
Dmitry Petrov 93c17f1380 [MRG+1] Added examples to docstrings of MinMaxScaler and StandardScaler (#9380)
[MRG+2] Added examples to docstrings of MinMaxScaler and StandardScaler
2017-07-18 15:13:10 -07:00
(Venkat) Raghav, Rajagopalan b6f8865b0a [MRG + 1 (rv) + 1 (alex) + 1] Add a check to test the docstring params and their order (#9206)
* add automatic test of docstrings for function / method signatures using numpydoc
2017-07-11 18:42:10 +02:00