Commit Graph

820 Commits

Author SHA1 Message Date
Franck Charras 77aeb825b6
FIX Apply dtype param in `check_array_api_compute_metric` unit test (#27940) 2023-12-18 16:43:08 +01:00
Konstantinos Pitas 8be339f230
DOC improve documentation of copy=False in preprocessing functions (#27691)
Co-authored-by: Tim Head <betatim@gmail.com>
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
2023-12-07 16:04:02 +01:00
scaja f113327bf1
DOC linked SplineTransformer to time-related feature engineering example (#26971)
Co-authored-by: scaja <scajadata@gmail.com>
Co-authored-by: adrinjalali <adrin.jalali@gmail.com>
2023-12-04 15:44:21 +00:00
Guillaume Lemaitre 1471fa7c58
FIX ensure consistency or column and feature names in FunctionTransformer (#27801)
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
2023-12-02 00:13:14 +01:00
Xuefeng Xu b8229daafe
ENH improve the efficiency of Encoders in checking nan (#27760)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-11-29 08:21:30 -08:00
Guillaume Lemaitre dc2a2256ea
MAINT remove sparse parameter in OneHotEncoder (#27861) 2023-11-27 23:25:48 +01:00
Guillaume Lemaitre 0816e0012c
FIX raise NotFittedError in OrdinalEncoder when required (#27821)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2023-11-23 15:35:17 -05:00
Thomas J. Fan 831c49aca3
ENH Adds polars output support to `set_output` API (#27315) 2023-11-19 22:46:56 +01:00
Edoardo Abati 5cf61b21ec
ENH Add Array API compatibility to `Normalizer` (#27558) 2023-11-14 14:08:43 +01:00
Lucy Liu 926671b25b
FIX improve warning message in `_ensure_sparse_format` (#27757) 2023-11-14 11:12:56 +01:00
Xuefeng Xu a55f1673d7
FIX raise an error if user defined categories contain duplicate values (#27328)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Tim Head <betatim@gmail.com>
2023-11-01 15:29:49 +00:00
Xuefeng Xu 0efad0029b
FIX raise an error if nan is not the last element in user provided categories (#27309)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-11-01 14:59:48 +01:00
Guillaume Lemaitre 88dbd3b5a5
DOC fix referencing in TargetEncoder docstring (#27697) 2023-11-01 15:01:24 +11:00
Edoardo Abati 1dd395cb85
ENH Add Array API compatibility to `KernelCenterer` (#27556) 2023-10-23 17:37:28 +02:00
Jérémie du Boisberranger eb85684feb
MAINT Follow cython performance hints (#27521) 2023-10-11 11:43:47 +02:00
Mateusz Sokół 0e56ae34f8
MAINT: Remove `np.int_` and `np.uint` (#27523) 2023-10-06 12:20:14 +02:00
Mohit Joshi 32e397553c
TST Extend tests for `scipy.sparse.*array` in `sklearn/preprocessing/tests/test_common.py` (#27164) 2023-10-02 14:07:19 +05:00
Mohit Joshi 9f6592f714
TST Extend tests for `scipy.sparse.*array` in `test_polynomial.py` (#27166)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-09-29 21:55:08 +00:00
Dimitri Papadopoulos Orfanos 0f43434e0c
DOC fix typos found by codespell (#27457) 2023-09-26 15:31:28 +02:00
Stefanie Senger 20dad5851e
DOC documentation and error message for mismatching output formats in transformers with a sparse output (#26919)
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2023-09-21 16:54:23 +02:00
Thomas J. Fan 89ea028ebd
ENH Improve warnings if func returns a dataframe in FunctionTransformer (#26944)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2023-09-19 19:10:38 +02:00
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