Commit Graph

799 Commits

Author SHA1 Message Date
Guillaume Lemaitre 0d701e8fef
MAINT use .toarray instead of .A that is deprecated (#27367)
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
2023-09-14 13:08:35 +02:00
Yao Xiao 9c46a6ce70
TST Extend tests for `scipy.sparse/*array` in `sklearn/preprocessing/tests/test_data` (#27253)
Co-authored-by: Omar Salman <omar.salman@arbisoft.com>
2023-09-13 19:27:30 +02:00
Tialo 1fffa8d94b
TST Extend tests for `scipy.sparse.*array` in `sklearn/preprocessing/tests/test_label.py` (#27227) 2023-09-13 17:50:35 +05:00
Yao Xiao d756290127
TST Extend tests for `scipy.sparse/*array` in `sklearn/preprocessing/tests/test_function_transformer` (#27254) 2023-09-13 14:06:12 +05:00
Stefanie Senger dcf88e9f6b
TST Extend tests for `scipy.sparse.*array` in `test_encoders.py` (#27289) 2023-09-07 14:54:28 +02:00
Lucy Liu 872c19effd
ENH Allows multiclass target in `TargetEncoder` (#26674)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2023-09-07 09:52:15 +00:00
Lucy Liu b72252e962
TST Fix typo, lint `test_target_encoder.py` (#26958)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2023-09-07 06:59:28 +00:00
Mateusz Sokół cb15a82e64
MAINT: Remove np.in1d and np.trapz usages (#27140)
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
2023-09-06 17:06:31 +02:00
Xuefeng Xu 6f9c6629e5
DOC add reference DOI in PowerTransformer (#27247) 2023-08-31 17:56:51 +02:00
Loïc Estève 1821c3c855
CI Fix scipy-dev issues related to numpy 2.0 changes (#27190) 2023-08-29 13:04:33 +02:00
Stefanie Senger 8ccaf0da1d
DOC Add links to preprocessing examples in docstrings and userguide (#26877)
Co-authored-by: Arturo Amor <86408019+ArturoAmorQ@users.noreply.github.com>
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2023-08-24 15:15:41 +02:00
Edoardo Abati 2efe3f3f6b
ENH Add Array API compatibility to MaxAbsScaler (#27110) 2023-08-23 16:09:28 +02:00
Loïc Estève f55da6220e
MNT Adjust code after NEP 51 numpy scalar formatting changes (#27042) 2023-08-22 11:26:55 +02:00
Tim Head 061f8777b4
ENH Add Array API compatibility to MinMaxScaler (#26243)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2023-08-18 14:39:08 +00:00
Xuefeng Xu 54925d8d0c
DOC fix default dtype in OneHotEncoder (#27054) 2023-08-12 13:04:02 +02:00
Tim Head 1b0a51bd90
Add tests for train_test_split with Array API input (#26855)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2023-08-09 18:27:31 +00:00
Lucy Liu 5ecfa8d696
CLN Update var name in `TargetEncoder` to make consistent (#27033) 2023-08-08 18:08:06 -04:00
Xuefeng Xu 34c4741203
FIX missing_indices were calculated twice in OrdinalEncoder (#27017)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2023-08-08 12:36:33 +05:00
Thomas J. Fan dcf051038f
FIX Adds more informative error message for OHE (#26931) 2023-07-31 13:40:31 +02:00
Thomas J. Fan 3dea10209e
FIX Disable set_output for label encoders (#26940)
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
Co-authored-by: Omar Salman <omar.salman@arbisoft.com>
2023-07-31 09:02:34 +00:00
Lucy Liu 8f63882bb4
DOC Improve `plot_target_encoder_cross_val.py` example (#26677) 2023-07-27 09:52:03 -04:00
Guillaume Lemaitre d991a196cb
MAINT make sure to test encoders in common tests (#26859) 2023-07-24 11:38:45 -04:00
Lucy Liu b13f69ce49
DOC Directly import label class in example (#26876) 2023-07-21 12:32:16 +05:00
Dimitri Papadopoulos Orfanos 1ba0783f64
MAINT Fix typos found by codespell (#26852) 2023-07-18 10:20:40 +02:00
Julien Jerphanion dfd299b19e
MAINT Remove soon-to-be deprecated scipy.sparse functions (#26751) 2023-07-12 18:34:01 +02:00
Venkatachalam N 10997c94fd
DOC Fix StandardScaler documentation describing when `mean_` is set (#26753) 2023-07-03 16:16:59 -04:00
Lucy Liu f108e2a361
DOC Fix cross references in `LabelBinarizer` (#26678) 2023-06-23 11:11:35 +02:00
Lucy Liu b948fdba24
DOC Improve target encoder User Guide (#26643) 2023-06-23 10:28:54 +02:00
Jérémie du Boisberranger 04575f5fa3
MAINT Param validation: apply skip nested validation to all functions (#26495) 2023-06-22 18:06:24 +02:00
Adrin Jalali 42173fdb34
MNT add isort to ruff's rules (#26649) 2023-06-21 17:50:07 +02:00
Lucy Liu ef6612f3b3
DOC Fix typos/nitpicks in `TargetEncoder` docstring (#26645) 2023-06-21 15:04:36 +02:00
Jérémie du Boisberranger 9c266cf5d6
MAINT Param validation: decorate all estimators with _fit_context (#26473) 2023-06-14 16:52:35 +02:00
Thomas J. Fan 96878baa75
FIX Ensure that index is correct when global transform_output is pandas (#26454) 2023-06-14 15:33:01 +02:00
Jérémie du Boisberranger e5df5fec4d
Fix PowerTransformer leaves constant feature unchanged (#26566)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2023-06-14 11:36:43 +02:00
Yao Xiao 18cf8d01ea
FIX `PowerTransformer` raise when "box-cox" has nan column (#26400)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2023-06-13 17:30:11 +00:00
Guillaume Lemaitre d85e22224c
MAINT make sure that hstack outputs a CSR matrix (#26555) 2023-06-09 17:35:24 +02:00
Christian Lorentzen e5c65906ee
ENH add sparse output to SplineTransformer (#24145)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2023-06-05 15:04:34 +02:00
Jérémie du Boisberranger 199cdfd768
ENH Change default value of subsample + allow for all strategies in KBinsDiscretizer (#26424)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-05-31 18:06:11 -04:00
Dimitri Papadopoulos Orfanos 2fd022d972
MAINT Fix typos found by codespell (#26448) 2023-05-31 10:19:21 +02:00
Julien Jerphanion 41b0bd82ff
MAINT Use `scipy.sparse.isspmatrix_*` (#26420) 2023-05-30 13:46:32 -04:00
Meekail Zain c6628a0e7a
ENH Allow for appropriate dtype us in `preprocessing.PolynomialFeatures` for sparse matrices (#23731)
Co-authored-by: Aleksandr Kokhaniukov <alexander.kohanyukov@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2023-05-04 21:30:49 +02:00
2357juan b2c388147c
MAINT Parameters validation for sklearn.preprocessing.quantile_transform (#26144)
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2023-04-19 16:35:46 +00:00
Jérémie du Boisberranger 9cb1111028
MAINT Cython linting (#25861) 2023-04-19 14:32:53 +00:00
Nightwalkx 100c11d3e1
MAINT Parameters validation for sklearn.preprocessing.power_transform (#26142) 2023-04-14 10:13:45 +02:00
2357juan 24f68c2a9e
MAINT Parameters validation for sklearn.preprocessing.robust_scale (#26086) 2023-04-12 12:15:23 +02:00
Adrin Jalali 893d5accaf
MNT Update black to 23.3.0 (#26110) 2023-04-06 12:14:16 -04:00
Jiawei Zhang fb526710b6
MAINT Parameters validation for sklearn.preprocessing.normalize (#26069)
Co-authored-by: jeremiedbb <jeremiedbb@yahoo.fr>
2023-04-04 13:50:01 +00:00
Jiawei Zhang d4d98017c3
MAINT Parameters validation for sklearn.preprocessing.label_binarize (#26078)
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2023-04-04 13:13:31 +02:00
Jiawei Zhang 8a1247d7e5
MAINT Parameters validation for sklearn.preprocessing.maxabs_scale (#26077)
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2023-04-04 11:10:03 +00:00
Jiawei Zhang 19ed2a05be
MAINT Parameters validation for sklearn.preprocessing.binarize (#26076) 2023-04-04 11:58:39 +02:00