Commit Graph

81 Commits

Author SHA1 Message Date
Guillaume Lemaitre 9290bae93c
FIX force explicitely the orientation when creating polar DataFrame (#27854) 2023-11-27 11:40:12 +01:00
Thomas J. Fan 831c49aca3
ENH Adds polars output support to `set_output` API (#27315) 2023-11-19 22:46:56 +01:00
Lucy Liu 926671b25b
FIX improve warning message in `_ensure_sparse_format` (#27757) 2023-11-14 11:12:56 +01:00
Tialo cfbab7769c
TST Extend tests for `scipy.sparse.*array` in `sklearn/utils/tests/test_utils.py` (#27201) 2023-09-11 12:16:28 +02:00
Loïc Estève 4560ee947f
MNT Ignore ruff errors (#27094) 2023-08-18 11:07:20 +02:00
Yao Xiao 87941ab497
MAINT Parameters validation for sklearn.utils.gen_even_slices (#26682)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-06-29 10:25:23 +00:00
Adrin Jalali 42173fdb34
MNT add isort to ruff's rules (#26649) 2023-06-21 17:50:07 +02:00
Adrin Jalali 893d5accaf
MNT Update black to 23.3.0 (#26110) 2023-04-06 12:14:16 -04:00
Pooja Subramaniam f4fbb28913
MAINT Parameters validation for utils.gen_batches (#25864) 2023-03-15 20:23:27 +01:00
Guillaume Lemaitre af16e5934a
MAINT test globally setting output via context manager (#24932)
Co-authored-by: jeremie du boisberranger <jeremiedbb@yahoo.fr>
2022-11-24 14:14:06 +01:00
Guillaume Lemaitre 8a07dc2cf8
MAINT update test since SettingWithCopyWarning location change (#23658)
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
2022-06-20 11:27:58 +02:00
Thomas J. Fan a739f6ca7c
MNT Replace pytest.warns(None) in test_utils (#23137) 2022-04-19 15:29:07 +02:00
Daniela Fernandes 8fb8b444ce
TST Replace pytest.warns(None) in utils/tests/test_utils.py (#22961) 2022-03-27 13:47:13 +02:00
Jérémie du Boisberranger 34f9dbf541
MNT Clean fixes and compat for old versions of our dependencies (#22642)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-03-02 11:32:06 +01:00
Thomas J. Fan 9f85c9d449
TST Better info when checking for no warnings in tests (#22362) 2022-02-03 11:42:48 +01:00
t-jakubek d5215a1535
Fixing integer overflow on 32-bit architectures. (#20904)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2021-09-03 14:00:26 +02:00
Guillaume Lemaitre d6735f4851
FIX accept large Python numeric in OrdinalEncoder (#20727) 2021-08-16 23:12:35 +02:00
Joris Van den Bossche 6ab86fb34b
FIX Use take in safe_indexing for pandas to avoid SettingWithCopyWarning (#20673)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-08-09 12:00:45 +02:00
Juan Martin Loyola 0d343bb2d2
Replace assert_warns* with pytest context manager in sklearn/utilst/tests/* (#20421) 2021-06-30 23:57:16 +02:00
Thomas J. Fan 3ae7c76153
STY Enables black with experimental_string_processing=true (#20412) 2021-06-29 09:47:04 +02:00
Thomas J. Fan 351ace7935
STY Uses black's with target_version >= 3.7 (#20294) 2021-06-17 15:50:27 -04:00
Thomas J. Fan 82df48934e
MNT Applies black formatting to most of the code base (#18948) 2021-06-17 14:21:09 -04:00
Thomas J. Fan 7cc0177f8e
MNT Replaces numpy alias with builtin typse (#17687)
* MNT Replaces numpy alias with builtin typse

* STY Lint error
2020-06-24 16:51:51 +02:00
Juan Carlos Alfaro Jiménez f42cf8a2bc
MNT Replace kwargs by named args for resample (#17324) 2020-05-26 07:48:50 +10:00
Roman Yurchak 192109af3d
MNT properly activate the env in the linting CI (#17177) 2020-05-10 13:22:55 -04:00
Thomas J Fan f703b85814
ENH Improves efficiency of ColumnTransformer for string keys (#16431) 2020-02-21 21:49:11 +01:00
Alexandre Batisse 418e0d55d3
[MRG] CLN Remove the use of assert_raises in utils/ (#16337)
* CLN use pytest raises ctxt manager for class weights & estimators [skip ci]

* CLN use pytest raises ctxt manager for multiclass test

* CLN use pytest warns in estimator checks test

* CLN use pytest raises ctxt manager for random test

* CLN use pytest raises ctxt manager for sparsefuncs test

* CLN use pytest raises ctxt manager for testing utils tests

* CLN use pytest raises ctxt manager for utils tests

* CLN use pytest raises ctxt manager for validation tests

* revert test_estimator_check.py to upstream master
2020-02-02 14:44:19 +01:00
bernie gray c45721d538 ENH check for invalid batch_size in gen_batches (#16181) 2020-01-27 09:24:50 +01:00
alexshacked c4ea377198 FIX ensure object array are properly casted when dtype=object (#16076) 2020-01-14 18:06:50 -08:00
Nicolas Hug ad80d3159a DEP Remove deprecated joblib tools in utils (#15792) 2019-12-06 13:59:46 +01:00
Guillaume Lemaitre c311efd501 FIX accept pandas Index for feature_names in PDP (#15639) 2019-11-18 06:39:43 -06:00
Guillaume Lemaitre 7ea7861482 ENH Add support for dataframe in PDP (#14028) 2019-10-31 12:24:39 -04:00
Nicolas Hug 19ad136223 MNT Replace DeprecationWarning with FutureWarning (#15080)
* bruteforce renaming

* WIP

* WIP

* some more

* removed weird line

* update -Werror

* testiforest

* again

* Fixed some tests

* fixed some tests

* removed -Werror

* fixed test_docstring_param issue

* fixed some tests

* some more

* renamed to SklearnDeprecationWarning

* pep8

* updated docs

* pep8

* merge

* changed to FutureWarning

* fixes

* Update doc/developers/tips.rst

Co-Authored-By: Adrin Jalali <adrin.jalali@gmail.com>

* avoid duplicates

* fixed warning for deprecations

* Still make CI break if DeprecationWarning isn't caught

* updated one warning

* fixed test

* fixed some renamings

* updated new dep warnings

* fixed bad import

* ignore warnings

* update again

* ignore futurewarning when walking packages

* Fixed test

* pep8

* Added whatsnew
2019-10-29 15:39:26 +01:00
Nicolas Hug b92455a6b2 MAINT Deprecate all of utils.testing except all_estimators (#15367) 2019-10-28 17:28:56 +01:00
Nicolas Hug 96c988cdde
MNT Make safe_indexing private (#15104) 2019-10-02 11:47:46 -04:00
Thomas J Fan dba753a200 API Auto generates deprecation for sklearn.utils.mocking (#15071) 2019-10-03 00:09:28 +10:00
Guillaume Lemaitre ae5f55888b [MRG] ENH add support for scalar, slice and mask in safe_indexing axis=0 (#14475) 2019-09-04 19:45:19 +10:00
Guillaume Lemaitre 992ed41ecc FIX change boolean array-likes indexing in old NumPy ver… (#14510) 2019-08-02 10:46:16 -04:00
Guillaume Lemaitre 5f37ec1a99 ENH add parameter axis in safe_indexing to slice rows and columns (#14035) 2019-07-03 07:59:35 +10:00
Nicolas Hug f3eb9d2206 [MRG] MNT removing assert_equal, etc -- continued (#14232) 2019-07-02 14:53:51 +10:00
Adrin Jalali 19c068a2ec MNT towards removing assert_equal, etc (#14222) 2019-07-01 09:13:32 -04:00
Nicolas Hug 14bdb9d7a8 FEA Add a stratify option to utils.resample (#13549) 2019-04-24 23:16:38 +02:00
Thomas J Fan 8edd9f9f15 ENH Add verbose option to Pipeline, FeatureUnion, and ColumnTransformer (#11364) 2019-04-22 00:51:21 +10:00
Roman Yurchak 0e3bb17e62 MAINT Run pyupgrade following Python2 deprecation (#12997) 2019-02-08 20:13:34 +08:00
Thomas Moreau d25da1be20 FIX make joblib utils private, and remove mentions of externals.joblib (#12345) 2018-11-20 10:53:52 +11: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
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
TakingItCasual 74b56dbc57 MNT Converting http to https (#12277) 2018-10-04 22:37:57 +08:00
jeremiedbb 0d8a04bd17 [MRG+1] SimpleImputer(strategy="constant") (#11211) 2018-06-20 17:20:33 +02:00