Commit Graph

444 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
Hanmin Qin 59a1ef7498 DOC Remove outdated doc in KBinsDiscretizer
See #13074
2019-01-27 18:05:10 +08:00
Hanmin Qin 025cff28fb DOC Remove outdated doc in KBinsDiscretizer (#13047) 2019-01-27 20:27:20 +11:00
Raf Baluyot 1f5bcaeb39 FIX float16 overflow on accumulator operations in StandardScaler (#13010) 2019-01-26 18:15:18 +01:00
Joris Van den Bossche fce73db57a FIX deprecation handling in OneHotEncoder for categorical_features + handle_unknown='ignore' case (#12923) 2019-01-15 16:34:55 +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
Roman Yurchak 684d8a221d MAINT Use set litterals when possible (#12667) 2019-01-06 19:21:45 +08: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
Bartosz Michałowski fa98a72dcc MNT Replaced all occurrences of assert_true and assert_false with assert (#12588) 2018-11-28 09:16:26 +08:00
Gabriel Marzinotto 62117f482e Bug with string dtype in OneHotEncoder with handle_unknown='ignore' (#12471)
* fix decisionTree issue #12259

* merge splitters

* fix decisionTree issue #12259

* merge splitters

* relaunch tests

* fix for ohe string sizes

* reverse tree changes because not done yet

* error with file

* pylinting

* add regression test and check if categories are strings before casting to object

* pylint

* pylint

* another posibility to handle the strings

* pylint

* pylint

* pylint

* add issue reference and explain the test

* handle object case

* update master test

* update master test

* Update _encoders.py

pylint

* Update test_encoders.py

* Update test_encoders.py

* Update _encoders.py

* Update _encoders.py

* fix checking for object type

* fix checking for object type

* fix checking for object type

* fix checking for object type

* fix encoder

* change check encoder

* add note in whats new
2018-11-18 14:59:07 -05:00
Olivier Grisel 0b85b0a922 FIX use ellipsis in PowerTransformer doctest (#12595) 2018-11-15 11:31:16 +01:00
Dillon Gardner 2afee939df FIX incorrect error when OneHotEncoder.transform called prior to fit (#12443) 2018-11-13 09:49:53 +11:00
Andreas Mueller eb36e4905a MNT Don't change self.n_values in OneHotEncoder.fit (#12286) 2018-11-11 16:41:30 +08:00
Hanmin Qin 43e3a02085
MNT Remove unused assert_true imports (#12560) 2018-11-11 11:08:37 +08:00
Yaroslav Halchenko 362cb3bcab TST autoreplace assert_true(...==...) with plain assert (#12547) 2018-11-11 09:05:34 +08:00
Nicolas Hug 042843a2dd FIX YeoJohnson transform lambda bounds (#12522) 2018-11-08 18:57:40 +11:00
Hanmin Qin 6b4e00deb0 MNT KBinsDiscretizer.transform should not mutate _encoder (#12514)
Fixes #12490
2018-11-06 21:44:44 +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
jeremiedbb ebe77d6936 modify kbins test using kmeans due to unstable local minimum (#12450) 2018-10-24 13:04:38 +02: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
bauks a1d0e96791 FIX Increase mean precision for large float32 arrays (#12338) 2018-10-16 09:08:39 +02:00
Cheuk Ting Ho f5ef674f3d DOC improve OneHotEncoder documentation (#12314) 2018-10-15 08:08:25 +11:00
Joris Van den Bossche 1e7cd7df9d BUG Fix OrdinalEncoder with manually specified categories (#12367) 2018-10-13 21:45:19 +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
Ekaterina Krivich 4e2e1fac0d ENH Cache class mapping in MultiLabelBinarizer() (#12116)
Fixes #11680
2018-10-09 00:24:24 +11: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
Sam Waterbury 11612fc867 MNT Raise error for duplicate classes when constructing a MultiLabelBinarizer (#12195) 2018-10-02 08:06:58 +08:00
Rohan Singh 94c70ff235 [MRG] More informative error message in OneHotEncoder(categories=None) with negative integer values (#12180)
* Fix Issue #12179

OneHotEncoder "only non-negative integers" message should suggest using
categories='auto'

* Fix Issue #12179

    OneHotEncoder "only non-negative integers" message should suggest using
    categories='auto'

* Fix Issue #12179

OneHotEncoder "only non-negative integers" message should suggest using
categories='auto'

* Fixes #12180 Modify the error message

* Fix the spacing
2018-10-01 12:27:04 -04:00
Hanmin Qin 0bbd935748 DOC Typo in OneHotEncoder 2018-09-20 23:27:40 +08:00
Albert Thomas e1cf0db5a7 DOC Update fit_transform docstring of OneHotEncoder (#12117) 2018-09-20 23:24:05 +08:00
Joris Van den Bossche dfdf605f67 BUG always raise on NaN in OneHotEncoder for object dtype data (#12033) 2018-09-13 14:50:08 +02:00
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