Commit Graph

1019 Commits

Author SHA1 Message Date
Franck Charras 171e124656
FEA: Ridge support for Array API compliant inputs (#27800)
Co-authored-by: Eric Lindgren <ericlin@chalmers.se>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Tim Head <betatim@gmail.com>
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
Co-authored-by: Oleksii Kachaiev <kachayev@gmail.com>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2024-04-25 11:52:04 +02:00
Stefanie Senger 78675d16b5
FIX `RecursionError` bug with metadata routing in metaestimators with scoring (#28712)
LGTM. Thanks @StefanieSenger , @adrinjalali
2024-04-23 16:50:28 +05:00
Christian Lorentzen 3ee60a720a
ENH add verbosity to newton-cg solver (#27526)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2024-04-12 14:29:54 +02:00
Jérémie du Boisberranger 10b5c66286
MAINT Clean up deprecations for 1.5: in linear_model._bayes (#28807) 2024-04-11 13:55:20 +02:00
Adrin Jalali c4c5463556
MNT upgrade black version (#28802) 2024-04-10 11:06:55 -04:00
Jérémie du Boisberranger cd1b1bef0e
MAINT cleanup utils.__init__: move IS_PYPY, _IS_WASM, _IS_32BIT into utils.fixes (#28768)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2024-04-08 09:07:26 +00:00
Jérémie du Boisberranger 3347e94d13
API Deprecate average=0 in SGD (#28582) 2024-03-06 17:34:12 +00:00
Lucy Liu 630961cd41
Fix `n_nonzero_coefs_` in `OrthogonalMatchingPursuit` always `None` when ignored (#28557) 2024-03-06 10:43:22 +00:00
Omar Salman ae7c3bd80e
FEA Add metadata routing to RidgeCV and RidgeClassifierCV (#27560)
Co-authored-by: Omar Salman <omar.salman@A006-00460.local>
2024-03-05 13:52:37 +01:00
Stefanie Senger e2f9530f0f
ENH Add metadata routing for `RANSACRegressor` (#28261) 2024-02-26 13:30:08 +00:00
Lucy Liu ee4c8e98ec
TST Add test `alpha=0.0` raises when `cv=None` for `_BaseRidgeCV` (#28477) 2024-02-20 17:42:04 +01:00
Adrin Jalali 6e5303520c
FIX default metadata requests when set via class attributes (#28435)
Co-authored-by: Guillaume Lemaitre <guillaume@probabl.ai>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2024-02-19 11:13:19 +00:00
Eddie Bergman 9c29816fdb
FIX handle dataframe in ARDRegression when predict requests std. dev. (#28377)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2024-02-09 15:01:11 +01:00
Thomas J. Fan e1ec2cf353
ENH available_if reraises inner error (#28198) 2024-01-22 15:48:04 +01:00
Christian Lorentzen 11b45b3496
API deprecate loss_function_ attribute in SGDClassifier and SGDOneClassSVM (#27979) 2023-12-19 14:44:07 +00:00
Guillaume Lemaitre e430f6e127
MAINT change the default solver in QuantileRegressor (#27943) 2023-12-12 17:01:54 +01:00
Guillaume Lemaitre ae2c80a210
MAINT remove normalize parameter and subsequent clean-up (#27855)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
2023-12-04 14:29:06 +00:00
Guillaume Lemaitre 289326704e
MAINT remove option penalty='none' in LogisticRegression (#27857) 2023-11-27 23:37:46 +01:00
Olivier Grisel 45b25f0774
TST stability problem for test_logistic_regressioncv_class_weights (#27649) 2023-11-23 20:49:54 +01:00
Lucy Liu 926671b25b
FIX improve warning message in `_ensure_sparse_format` (#27757) 2023-11-14 11:12:56 +01:00
Omar Salman 92264415c8
FEA Add metadata routing to models that inherit from LinearModelCV (#27478) 2023-10-10 10:06:30 +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
Tialo ea3e1764cb
TST Extend tests for `scipy.sparse.*array` in `sklearn/linear_model/tests/test_logistic.py` (#27210)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-09-13 21:24:24 +00:00
Tialo 1eb35b5b76
TST Extend tests for `scipy.sparse.*array` in `sklearn/linear_model/tests/test_sag.py` (#27206) 2023-09-13 22:11:18 +02:00
Tialo fd2e5c2e95
TST Extend tests for `scipy.sparse.*array` in `sklearn/linear_model/tests/test_huber.py` (#27211) 2023-09-13 21:35:43 +02:00
Yao Xiao b60ee07cab
TST Extend tests for `scipy.sparse/*array` in `sklearn/linear_model/tests/test_base` (#27225)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-09-13 19:23:29 +02:00
Yao Xiao d1cff3a3f4
TST Extend tests for `scipy.sparse/*array` in `sklearn/linear_model/tests/test_coordinate_descent` (#27226)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-09-13 14:23:04 +00:00
Yao Xiao 44ef9759ba
TST Extend tests for `scipy.sparse/*array` in `sklearn/linear_model/tests/test_sparse_coordinate_descent` (#27237)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-09-13 13:17:39 +00:00
Yao Xiao 2b01832c7a
TST Extend tests for `scipy.sparse/*array` in `sklearn/linear_model/tests/test_ridge` (#27235) 2023-09-13 17:33:59 +05:00
Yao Xiao 718b19fe40
TST Extend tests for `scipy.sparse/*array` in `sklearn/linear_model/tests/test_quantile` (#27228)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-09-13 14:24:36 +02:00
Yao Xiao 03b3accde1
TST Extend tests for `scipy.sparse/*array` in `sklearn/linear_model/tests/test_ransac` (#27233) 2023-09-13 14:12:02 +02:00
Xiao Yuan a0bdf60f5e
TST Extend tests for `scipy.sparse.*array` in `sklearn/linear_model/tests/test_passive_aggressive.py` (#27273) 2023-09-11 20:02:14 +02:00
IsaacTrost 952f4805e6
TST Extend tests for `scipy.sparse.*array` in `sklearn/linear_model/tests/test_perceptron.py` (#27160) 2023-08-28 11:15:18 +02:00
Nurseit Kamchyev 7ad70909cf
TST Extend tests for `scipy.sparse.*array` in `sklearn/linear_model/tests/test_linear_loss.py` (#27133)
Signed-off-by: Nurseit Kamchyev <bncer.ml@gmail.com>
2023-08-23 18:17:57 +02:00
Adrin Jalali 4e679023eb
CLN clean up some repeated code related to SLEP006 (#26836)
Co-authored-by: Omar Salman <omar.salman@arbisoft.com>
2023-07-17 15:26:41 +05: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
Julien Jerphanion dfd299b19e
MAINT Remove soon-to-be deprecated scipy.sparse functions (#26751) 2023-07-12 18:34:01 +02:00
Jiawei Zhang 34446739df
MAINT Parameters validation for sklearn.linear_model.lars_path (#26381)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-07-06 10:42:46 -04:00
Yao Xiao 2b0b11a1d9
MAINT Parameters validation for sklearn.linear_model.ridge_regression (#26250)
Co-authored-by: jeremie du boisberranger <jeremiedbb@yahoo.fr>
2023-06-28 14:13:31 +00:00
Olivier Grisel 4e88150bc6
Fix AttributeError use_fallback_lbfgs_solve for newton-cholesky when fitting with max_iter=0 (#26653)
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2023-06-26 15:07:59 +00:00
Olivier Grisel 1cbf71b0ed
FIX seed test_large_sparse_matrix (#26672)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2023-06-23 11:38:24 +02:00
Guillaume Lemaitre 9ff86c628a
MAINT solve the failure in scipy-dev (#26646) 2023-06-22 00:49:09 +02:00
Adrin Jalali 42173fdb34
MNT add isort to ruff's rules (#26649) 2023-06-21 17:50:07 +02:00
Thomas J. Fan 4986838b7a
CI Adjust atol for conda-forge to pass (#26628) 2023-06-20 16:02:31 +02:00
Olivier Grisel c0d4f750b3
FIX seed in test_ridge_sample_weight_consistency [all random seeds] (#26589) 2023-06-16 11:37:46 +02:00
Guillaume Lemaitre 9eea5b7092
MAINT unpack 0-dim NumPy array instead of implicit conversion (#26345)
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2023-06-09 15:07:59 +02:00
Jérémie du Boisberranger 767d3555a5
MAINT Clean up deprecated base_estimator in RANSAC for 1.3 (#26481) 2023-06-08 12:07:17 +02:00
Dimitri Papadopoulos Orfanos 2fd022d972
MAINT Fix typos found by codespell (#26448) 2023-05-31 10:19:21 +02:00
Christian Lorentzen 42d235924e
TST Add tests for LinearRegression that sample weights act consistently (#15554)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2023-05-26 15:52:54 +00:00
Rahil Parikh 55af30d981
TST fix sklearn/linear_model/tests/test_quantile.py::test_sparse_input for Windows (#26293) 2023-05-17 10:46:55 +02:00