Commit Graph

302 Commits

Author SHA1 Message Date
Thomas J. Fan d319344dff
ENH Adds polars output support to ColumnTransformer (#26683)
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
2023-12-04 13:25:35 +00:00
Guillaume Lemaitre 0027893288
ENH _get_response_values handles predict_log_proba (#27719) 2023-12-04 14:23:10 +05: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
Guillaume Lemaitre 56f6477d50
MAINT downcast indices dtype when converting sparse arrays (#27372)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2023-10-30 11:23:30 +01:00
Stefanie Senger 14bc3fd241
MNT remove doubled code in validation.py (#27618) 2023-10-19 12:32:08 +02:00
Guillaume Lemaitre 286f0c9d17
DOC fixes references issues given by sphinx (#27432) 2023-10-03 20:25:29 +02:00
Adrin Jalali bafd46d853
DOC add link to sklearn_is_fitted example in check_is_fitted (#26926)
Co-authored-by: Arturo Amor <86408019+ArturoAmorQ@users.noreply.github.com>
2023-09-29 12:58:36 +00:00
Guillaume Lemaitre e7ae63f784
FIX avoid unecessary `if copy` branch for sparse array/matrix (#27336)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2023-09-11 13:58:14 +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
Loïc Estève f55da6220e
MNT Adjust code after NEP 51 numpy scalar formatting changes (#27042) 2023-08-22 11:26:55 +02:00
Artem Kislovskiy 84273d8e1b
TST Extend tests for `scipy.sparse.*array` in `sklearn/cluster/tests/test_bisect_k_means.py` (#27099)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2023-08-18 15:40:22 +00:00
Ricardo Peres 8c59089a6d
DOC Add description for the meaning of `None` for check_X_y (#25997)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2023-08-12 00:16:11 +02:00
Omar Salman 02d20c1851
ENH Add routing to LogisticRegressionCV (#26525)
Co-authored-by: Omar Salman <omar.salman@arbisoft>
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-07-14 19:00:35 +02:00
Olivier Grisel 7af0a18996
DOC improve inline comment for __dataframe__ support in _get_feature_names (#26664) 2023-06-23 10:25:27 +02:00
Thomas J. Fan 0e1f170d8a
ENH Adds feature names support to dataframe protocol (#26464)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2023-06-21 23:45:55 +00: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 9c266cf5d6
MAINT Param validation: decorate all estimators with _fit_context (#26473) 2023-06-14 16:52:35 +02:00
Dimitri Papadopoulos Orfanos 2fd022d972
MAINT Fix typos found by codespell (#26448) 2023-05-31 10:19:21 +02:00
Thomas J. Fan 6392148d80
ENH Adds missing value support for trees (#23595)
Co-authored-by: Tim Head <betatim@gmail.com>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2023-05-04 10:19:24 +02:00
Loïc Estève 789c0680f6
MNT Remove deprecated pandas.api.types.is_sparse (#26287) 2023-04-27 11:26:03 +02:00
Jérémie du Boisberranger cad262cf99
DOC Consistent param type for pos_label (#26237) 2023-04-25 13:44:12 -04:00
Thomas J. Fan 66a3905541
ENH Adds PyTorch support to LinearDiscriminantAnalysis (#25956)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Tim Head <betatim@gmail.com>
2023-04-21 11:13:29 +02:00
Adrin Jalali 893d5accaf
MNT Update black to 23.3.0 (#26110) 2023-04-06 12:14:16 -04:00
Thomas J. Fan a7a416f749
FIX Fixes memory regression for inspecting extension arrays (#26106) 2023-04-06 10:27:35 +02:00
Thomas J. Fan 87ec7401cc
ENH Forces shape to be tuple when using Array API's reshape (#26030)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Tim Head <betatim@gmail.com>
2023-04-04 11:03:00 +02:00
Guillaume Lemaitre 7f1e15d5c2
MAINT Introduce BinaryClassifierCurveDisplayMixin (#25969)
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2023-04-03 14:43:58 -04:00
Thomas J. Fan f097f43645
ENH Adds isdtype to Array API wrapper (#26029) 2023-04-03 14:31:09 +02:00
Julien Jerphanion 545cc809e1
MAINT Extend message for large sparse matrices support (#25961)
Co-authored-by: Meekail Zain <34613774+Micky774@users.noreply.github.com>
2023-03-25 19:25:47 +00:00
Guillaume Lemaitre 01b9050b69
MAINT introduce _get_response_values and _check_response_methods (#23073)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2023-03-24 18:15:08 +01:00
Thomas J. Fan 18af550801
FIX Fixes pandas extension arrays with objects in check_array (#25814) 2023-03-22 19:31:29 +01:00
Thomas J. Fan 65dfab01cd
FIX Fixes pandas extension arrays in check_array (#25813) 2023-03-22 17:41:32 +01:00
Thomas J. Fan 245ac79641
FIX Fixes check_array nonfinite checks with ArrayAPI specification (#25619)
* FIX Fixes check_array nonfinite checks with ArrayAPI specification

* DOC Adds PR number

* FIX Test on both cupy and numpy
2023-02-19 17:39:34 +01:00
Tim Head a0829ac893
Use `check_array` to validate `y` (#25089)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
closes https://github.com/scikit-learn/scikit-learn/issues/25073
2022-12-15 14:12:56 +00:00
Tim Head a576bcc22f
FIX Convert boolean pd.Series to boolean ndarrays (#25147) 2022-12-12 11:41:13 +01:00
Thomas J. Fan 54d91d3cbe
FIX Fixes check_array for pd.NA in a series (#25080) 2022-12-02 12:45:31 +01:00
Thomas J. Fan f1963445fc
ENH Improves error message for mixed types for feature names (#25018)
Co-authored-by: jeremie du boisberranger <jeremiedbb@yahoo.fr>
2022-11-25 14:58:58 +01:00
Olivier Grisel 74ddf01986
ENH Add support for feature names in monotonic_cst (#24855)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Tim Head <betatim@gmail.com>
2022-11-15 16:32:40 +01:00
Thomas J. Fan 9c4f023528
FIX Improves nan support in LabelEncoder (#22629) 2022-10-28 08:32:09 +02:00
Jérémie du Boisberranger 7b0a162065
MAINT Fix error on np.matrix usage in documentation (#24514) 2022-09-26 18:34:01 +02:00
Jérémie du Boisberranger 9f9f1684e9
MAINT Clean deprecation for 1.2: validation (#24493)
* cln deprecations

* cln

* fix tst switch to pytest.raises
2022-09-22 13:46:31 -04:00
Thomas J. Fan 2710a9e7ee
ENH Adds Array API support to LinearDiscriminantAnalysis (#22554)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2022-09-21 15:36:19 +02:00
Xiao Yuan b850a9417d
DOC Ensures that check_is_fitted passes numpydoc validation (#24454) 2022-09-16 17:03:45 +02:00
Thomas J. Fan 5d9dc4a7fd
MNT Use is_sparse to validate sparse data from pandas (#24074)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2022-08-05 16:27:54 +02:00
Meekail Zain c13ed7c9e5
MAINT Minor refactor to de-indent majority of `_assert_all_finite` (#24118) 2022-08-05 10:02:34 -04:00
Meekail Zain dfaef0c6c3
ENH Cythonize `_assert_all_finite` using stop-on-first strategy (#23197)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: jakirkham <jakirkham@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-07-06 18:04:29 +02:00
Meekail Zain 38d23c4de5
MNT Removed `_safe_accumulator_op` for first-pass algorithm in `_assert_all_finite` (#23446)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-05-25 16:40:34 -04:00
Meekail Zain 4685cf6245
MAINT Minor refactor of `_assert_all_finite` logic (#23347)
* Streamlined logic

* Reverted back to safe_accumulator for StandardScalar performance

Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-05-13 22:16:08 +02:00
Maren Westermann 05d5f0a1ad
DOC correct return type of check_random_state (#23320)
Co-authored-by: Maren Westermann <maren.westermann@free-now.com>
2022-05-12 10:43:42 -04:00
Maxwell d3050e4605
DOC List estimators that supports missing data in user guide (#23198)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Lise <lise.kleiber@insa-rouen.fr>
Co-authored-by: Chiara Marmo <marmochiaskl@gmail.com>
2022-05-04 14:49:00 -04:00