Adrin Jalali
51c8e0e19d
CLN replace authors with the standard line ( #29250 )
2024-06-17 17:57:02 +00:00
Adrin Jalali
55ca335e42
CLN use new license notice line ( #29246 )
2024-06-13 15:51:09 +02:00
Omar Salman
acd2d90e50
ENH Array API support for LabelEncoder ( #27381 )
...
Co-authored-by: Omar Salman <omar.salman@arbisoft>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2024-05-16 15:47:35 +02:00
Olivier Grisel
bca36349a1
FIX 1d sparse array validation ( #28988 )
...
Co-authored-by: Jérémie du Boisberranger <jeremie@probabl.ai>
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2024-05-13 11:28:17 +00:00
Will Dean
0bdc754e5d
API Standardize `X` as `inverse_transform` input parameter ( #28756 )
...
Co-authored-by: Jérémie du Boisberranger <jeremie@probabl.ai>
2024-04-29 15:08:25 +00:00
Jérémie du Boisberranger
57a72222da
MAINT Clean up deprecations for 1.5: in KBinsDiscretizer ( #28817 )
2024-04-11 17:59:05 +00:00
Patrick Wang
3fa732bb72
FIX Do not warn when using polars DataFrames in DecisionBoundaryDisplay.from_estimator ( #28718 )
...
Co-authored-by: jeremie du boisberranger <jeremiedbb@yahoo.fr>
Co-authored-by: Guillaume Lemaitre <guillaume@probabl.ai>
2024-04-10 15:24:05 +02:00
Jérémie du Boisberranger
9926887f4c
MAINT cleanup utils.__init__: move _to_object_array into utils.validation ( #28661 )
...
Co-authored-by: Guillaume Lemaitre <guillaume@probabl.ai>
2024-03-28 08:03:57 +00:00
Guillaume Lemaitre
a83ae9c85d
TST remove sparse-np.float16 support in tests ( #28635 )
...
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
2024-03-18 11:37:57 +00:00
Ralph Urlus
f4c058ac09
ENH Add option to disable subsampling to QuantileTransformer ( #27636 )
...
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: jeremiedbb <jeremiedbb@yahoo.fr>
2024-03-08 11:30:52 +00:00
Jérémie du Boisberranger
e94eae47b5
MAINT cleanup utils.__init__: move nan utils into dedicated submodule ( #28495 )
2024-02-22 19:32:34 -05:00
John Hopfensperger
ce8cb6ed2f
FIX Target encoder const y ( #28233 )
...
Co-authored-by: s-banach <john@hopfensperger.family>
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2024-02-02 10:43:25 -05:00
Guillaume Lemaitre
02fee0a23c
FIX FunctionTransformer overwrite column names if not consistent ( #28241 )
2024-02-01 18:09:50 +00:00
Loïc Estève
d61b65e644
CI Unpin pytest and regenerate lock-files ( #28318 )
2024-01-31 18:14:14 +01:00
Guillaume Lemaitre
d797b771f1
FIX warn when requested polars DataFrame but no column names are found ( #28263 )
...
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
2024-01-30 17:27:12 +00:00
Yao Xiao
93e199d517
FIX improve error message in `check_array` when getting a `Series` and expecting a 2D container ( #28090 )
...
Co-authored-by: Stanislas Furrer <stanislas.furrer@epfl.ch>
2024-01-14 12:29:39 -05:00
Franck Charras
77aeb825b6
FIX Apply dtype param in `check_array_api_compute_metric` unit test ( #27940 )
2023-12-18 16:43:08 +01: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
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
Edoardo Abati
1dd395cb85
ENH Add Array API compatibility to `KernelCenterer` ( #27556 )
2023-10-23 17:37:28 +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
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
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
Edoardo Abati
2efe3f3f6b
ENH Add Array API compatibility to MaxAbsScaler ( #27110 )
2023-08-23 16:09:28 +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
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
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
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
Adrin Jalali
42173fdb34
MNT add isort to ruff's rules ( #26649 )
2023-06-21 17:50:07 +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
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