Commit Graph

2196 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
Yao Xiao 4d353c6117
CLN avoid nested conftests (#27954) 2023-12-13 12:29:51 -05:00
Loïc Estève dc23e3f4a0
MAINT Remove Python<3.9 code from sklearn.utils.fixes (#27945)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-12-13 15:00:08 +01:00
Franck Charras 3cd80629cf
MNT Prune unused argument in `_array_api_for_tests` util (#27941) 2023-12-11 16:43:48 -05:00
Franck Charras 8e10cd7f0c
MNT remove `take` fn in array_api wrapper (#27939) 2023-12-11 16:41:29 -05:00
Thomas J. Fan 0496f4877c
MAINT Remove deprecated support for int in boolean constraint (#27924) 2023-12-11 11:17:05 +01:00
Thomas J. Fan 1170f21ec4
MAINT Remove deprecated kwargs support in density (#27925) 2023-12-11 11:16:12 +01:00
Thomas J. Fan bd162e5548
CLN Update docs and test name for polars output in ColumnTransformer (#27902) 2023-12-05 16:23:39 +01:00
Guillaume Lemaitre fcdddd58ad
MAINT use Voting and Stacking support missing values (#27710) 2023-12-05 08:24:21 -05:00
Jérôme Dockès e1ce967a33
ENH detect categorical polars columns in HistGradientBoosting (#27835)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2023-12-05 10:15:06 +01:00
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
Guillaume Lemaitre 9290bae93c
FIX force explicitely the orientation when creating polar DataFrame (#27854) 2023-11-27 11:40:12 +01:00
Dimitri Papadopoulos Orfanos 6a7c8fd565
MAINT Fix typos found by codespell (#27824)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-11-22 15:59:36 +00:00
Thomas J. Fan 831c49aca3
ENH Adds polars output support to `set_output` API (#27315) 2023-11-19 22:46:56 +01:00
Sebastian Berg 0ab36990c0
MAINT: Adapt sklearn for NumPy default integer change (#27041)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2023-11-16 09:35:16 -05:00
Olivier Grisel 5c09163d77
FIX array_api support for non-integer n_components in PCA (#27431) 2023-11-15 11:45:35 -05:00
Tialo 49a2eb7a16
FIX Array API related error in `sklearn.utils.mutilclass.is_multilabel` function (#27601) 2023-11-14 14:39:56 +00: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
Christian Veenhuis 2137ee0335
MAINT Remove -Wdiscarded-qualifiers compilation warning for sklearn.utils.arrayfuncs (#27766) 2023-11-13 14:48:46 +01:00
Guillaume Lemaitre 2c1472d397
MAINT force encoding when opening file to not be platform specific (#27731)
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
2023-11-10 11:07:25 +01:00
Isaac Virshup 2d9fa48aaf
ENH Allow fitting PCA on sparse X with arpack solvers (#18689)
Co-authored-by: Andrey Portnoy <aportnoy@fastmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2023-11-07 10:42:50 +00:00
Yao Xiao f284ef2dfe
TST Extend tests for `scipy.sparse/*array` in `sklearn/manifold/tests/test_spectral_embedding` (#27240)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2023-11-04 13:26:44 -04:00
Guillaume Lemaitre a1e263af60
DOC use sphinx-gallery css variable to adapt light/dark theme (#27659) 2023-11-03 19:01:04 +01:00
Tialo 9ee3754a9a
TST Extend tests for `scipy.sparse.*array` in `sklearn/utils/tests/test_seq_dataset.py` (#27413)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-11-02 13:18:01 +01:00
Tialo 9621539a9d
TST Extend tests for `scipy.sparse.*array` in `sklearn/utils/tests/test_estimator_checks.py` (#27203)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-11-01 17:00:59 -04: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
Riccardo Cappuzzo 458c55827a
ENH improve visual HTML estimator representation (#26616)
Co-authored-by: ines.ibnukhsein <ines.ibnukhsein@dataiku.com>
Co-authored-by: Gael Varoquaux <gael.varoquaux@normalesup.org>
Co-authored-by: Ines <ines-99@ukr.net>
Co-authored-by: Lilian <lilian@boulard.fr>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Tim Head <betatim@gmail.com>
2023-10-25 08:38:12 +02:00
Olivier Grisel 1f1329f7ec
FIX Use torch.backends.mps.is_built() instead of torch.has_mps (#27642) 2023-10-23 19:14:43 +02:00
Olivier Grisel c6d0d29b19
FIX update create_memmap_backed_data to work on any estimator object via joblib 1.2.0 and later (#27614) 2023-10-22 19:54:01 +02:00
Tialo 4cf0d3a15a
FIX Array API related bug in `_unique_indicator` (#27607) 2023-10-20 16:24:47 +02:00
Lucy Liu 2490ff1715
DOC Clarify `pos_label` in `_get_response_values` (#27610) 2023-10-20 07:26:57 +02:00
Stefanie Senger 14bc3fd241
MNT remove doubled code in validation.py (#27618) 2023-10-19 12:32:08 +02:00
Tim Head b470ba1bd5
FIX CUDA detection when using PyTorch (#27606) 2023-10-17 18:48:26 +02:00
Guillaume Lemaitre 8912619e0d
FIX handle outlier detector in _get_response_values (#27565) 2023-10-13 12:04:08 +02:00
Guillaume Lemaitre 5444030d06
FIX validate properly zero_division=np.nan when used in parallel processing (#27573) 2023-10-13 10:47:11 +02:00
Guillaume Lemaitre c5be0e7fd7
MAINT downcast object to other dtype without deprecation warning (#27487)
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
2023-10-11 12:04:43 +02:00
Guillaume Lemaitre 3597f0bb5d
ENH accept class_of_interest in DecisionBoundaryDisplay to inspect multiclass classifiers (#27291)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Arturo Amor <86408019+ArturoAmorQ@users.noreply.github.com>
2023-10-11 10:29:57 +02:00
Christian Lorentzen 3076f297cd
MNT replace log_logistic by logaddexp (#27544)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-10-10 08:23:36 +00:00
Loïc Estève 19932fcdbf
TST Use _sklearn_version rather than version in pickle tests (#27554) 2023-10-09 22:46:49 +02:00
Loïc Estève 3179ce31cc
MAINT Use scipy sparse nanmin/nanmax for scipy>=1.11 (#27492)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2023-10-09 09:07:26 +02:00
Christian Lorentzen dda6337b2c
ENH scaling of LogisticRegression loss as 1/n * LinearModelLoss (#26721)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-10-06 23:49:37 +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
Loïc Estève 751ccc0a4d
CI Run test suite inside Pyodide (#27346)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2023-09-28 17:57:20 -04:00
Naoise Holohan 38a1e64bbe
FIX Param validation Interval error for large integers (#26648)
Co-authored-by: jeremie du boisberranger <jeremiedbb@yahoo.fr>
2023-09-27 16:07:49 +00:00
Dimitri Papadopoulos Orfanos 0f43434e0c
DOC fix typos found by codespell (#27457) 2023-09-26 15:31:28 +02:00
Adrin Jalali 59d5236724
MNT SLEP6: raise NotImplementedError for meta-estimators not supporting metadata routing (#27389) 2023-09-25 13:50:18 +00:00
Yao Xiao d38a7e3103
TST Extend tests for `scipy.sparse/*array` in `sklearn/neighbors/tests/test_neighbors` (#27250) 2023-09-25 11:14:02 +00:00