Commit Graph

472 Commits

Author SHA1 Message Date
Guillaume Lemaitre 6525a39dd6 MNT Remove Imputer in preprocessing (#13796) 2019-05-08 22:24:32 +08:00
Guillaume Lemaitre 28480f4cb2 DEP change the default of gamma in SVM (#13801) 2019-05-07 16:12:49 +02:00
Stephen Cowley 612a04e4e4 DOC Fix more formatting inconsistencies (#13787) 2019-05-05 22:05:58 +08:00
Andrew Nystrom 9d5dd3e967 DOC Updating PolynomialFeatures.Transform docstring (#13755) 2019-05-02 01:31:08 +10:00
Stephen Cowley e7ca6236c5 Fix spacing and formatting inconsistencies (#13747) 2019-05-02 01:29:49 +10:00
Prathmesh Savale 4b9e12e73b Deprecate "warn_on_dtype" from check_array (#13382) 2019-04-19 14:03:52 -04:00
Nicolas Hug 83dca7eb1b MNT Correctly handle deprecated attribute warnings and docstrings (#13635) 2019-04-18 10:21:40 -07:00
jeremiedbb cad0fb434f MNT Use a common language_level cython directive (#13630) 2019-04-13 07:30:18 +02:00
Nicolas Hug 7500693ea2 MNT remove fit_params from BaseSearchCV.__init__ (#13519)
* remove fit_params from BaseSearchCV.__init__

* fixed randomness of test_imputation_pipeline_grid_search?

* removed KFolds
2019-03-27 22:41:15 +01:00
Mohammad Aftab c3731f524c MNT Updated error message to remove deprecated n_values (#13454) 2019-03-22 08:34:53 +11:00
Hunter McGushion b646a815b4 API Update `quantile_transform` `copy` default to True (#13459) 2019-03-20 19:48:20 +08:00
Albert Thomas e5e8c2dfee DOC Fix docstring of quantile_transform function (#13471) 2019-03-19 10:29:01 +08:00
Federico Caselli 457b0d0296 DOC Fix typo in FunctionTransformer (#13404) 2019-03-06 16:04:26 -08:00
Joris Van den Bossche afd432137f
CLN: remove duplicate validation of X in Encoders transform (#13347) 2019-03-02 09:45:49 +01:00
Albert Thomas 2ad8735c50 FIX set n_quantiles to min(n_samples, n_quantiles) in QuantileTransformer (#13333) 2019-03-01 11:23:56 +01:00
Roman Yurchak cf9a740598 [MRG+1] Use astype(.., copy=False) when possible (#11973)
* Use astype(.., copy=False) when possible

* Use Use astype(.., copy=False) also in tests

* Fix CI

* Guillaume's comments

* Address review comments

* Add what's new

* Fix CI

* Lint

* Fix merge issues

* More merge conflict fixes

* Fix failing test

* Lint

* Use copy=True in cluster/hierarchical

* More fixes
2019-03-01 11:07:10 +01:00
maikia b2344a4e3f ENH: process DataFrames in OneHot/OrdinalEncoder without converting to array #12147 (#13253) 2019-03-01 11:02:57 +01:00
Joris Van den Bossche 20f64eb111 MNT Follow force_all_finite for object dtype in check_array (#13254) 2019-03-01 07:02:37 +01:00
Roman Yurchak 49570484db MAINT Use cython language_level=3 directive (#12873) 2019-02-28 18:45:15 +01:00
Andreas Mueller 8d815af732
MRG don't warn on changing dtypes in scalers (#13306)
* don't warn on changing dtypes in scalers

* remove tests for dtype warnings

* len(False) > len(True)

pep8
2019-02-28 09:42:50 +01:00
Albert Thomas 0f09297cde ENH: simplify transform for uniform output in QuantileTransformer (#12827) 2019-02-26 17:53:38 +01:00
drewmjohnston 350cd4aefa ENH: Add Drop Option to OneHotEncoder. (#12908) 2019-02-26 13:50:21 +01:00
Andreas Mueller ab2f539a32 API: Estimator tags (#8022) 2019-02-23 22:54:41 +01:00
Hanmin Qin b40868d52b FIX Remove bins whose width <= 1e-8 with a warning in KBinsDiscretizer (#13165)
* remove redundant bins

* tests

* what's new

* issue number

* numeric issue

* move what's new

* Joel's comment

* forget something

* flake8

* more doc update

* Joel's comment

* redundant bins

* new message

* comment
2019-02-20 15:39:32 +01:00
SandroCasagrande 9ac5793af1 FIX Ensure sorted bin_edges from kmeans strategy of KBinsDiscretizer (#13135) 2019-02-12 09:26:49 +08:00
Roman Yurchak 0e3bb17e62 MAINT Run pyupgrade following Python2 deprecation (#12997) 2019-02-08 20:13:34 +08:00
surgan12 62d2059804 MNT remove __future__ imports (#12791) 2019-02-02 22:05:06 +08:00
Hanmin Qin 575064b8e1
MNT More clean up after we remove python < 3.5 (#13078) 2019-02-02 22:01:13 +08:00
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