Commit Graph

2371 Commits

Author SHA1 Message Date
Thomas J. Fan d4aad64b1e
MNT Update to black 22.3.0 to resolve click error (#22983)
* MNT Update to black 22.3.0 to resolve click error

* STY Update for new black version
2022-03-29 12:04:41 +02:00
Christian Lorentzen 75a94f518f
ENH migrate GLMs / TweedieRegressor to linear loss (#22548)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2022-03-28 19:20:01 -04:00
Christian Lorentzen bf0ece817d
ENH add sample_weight to sparse coordinade descent (#22808) 2022-03-25 11:09:28 +01:00
Jérémie du Boisberranger d76f87c8eb
Fix Ridge sparse + sample_weight + intercept (#22899)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-03-22 20:15:54 +01:00
Gabriel Stefanini Vicente ffa0898d5a
API Add data_transposed argument and warning to make_sparse_coded_signal (#21425)
Co-authored-by: Andreas Mueller <t3kcit@gmail.com>
Co-authored-by: jeremie du boisberranger <jeremiedbb@yahoo.fr>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-03-22 16:01:42 +01:00
Richard Taylor 02f8ffd55f
MNT Replace pytest.warns(None) in test_ridge.py (#22917) 2022-03-22 08:47:38 -04:00
Christian Lorentzen 99262c06c0
MNT remove sparse_lsqr from utils.fixes (#22894) 2022-03-18 21:14:07 +01:00
Jérémie du Boisberranger 7414a7c4c5
FIX LinearRegression sparse + intercept + sample_weight (#22891) 2022-03-18 17:47:26 +01:00
Richard Taylor ea290e2d61
TST remove pytest.warns(None) in test_logistic.py (#22877) 2022-03-18 16:16:42 +01:00
Richard Taylor 850d44992e
replace pytest.warns(None) in test_least_angle.py (#22889) 2022-03-18 16:15:28 +01:00
Richard Taylor aee564c544
TST Replace pytest.warns(None) in test_omp.py (#22886) 2022-03-17 20:13:51 -04:00
Richard Taylor ebad97800f
TST replace pytest.warns(None) in test_coordinate_descent.py (#22878) 2022-03-17 13:51:33 -04:00
Richard Taylor 615c68a6aa
TST replace pytest.warns(None) in linear_model test_base.py (#22876) 2022-03-17 13:33:30 +01:00
Dimitri Papadopoulos Orfanos 3d4ee9e9dc
MNT Remove utf-8 encoding declarations (#21260)
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-03-14 17:59:36 +01:00
MarieS-WiMLDS 617e9c458b
fix(doc): fix sklearn.linear_model._ridge.ridge_regression (#22788)
Co-authored-by: Marie <marie.sacksick@cybelangel.com>
2022-03-12 16:57:10 +01:00
Christian Lorentzen f856bfbd1d
TST check sparse dense equality for Lasso and ElasticNet (#22767) 2022-03-11 14:22:07 -05:00
Christian Lorentzen 1c094728a3
CLN clean _preprocess_data in linear_model (#22762) 2022-03-11 13:48:27 -05:00
Meekail Zain 58cfd486c4
DOC Standardizing the documentation for `alpha` in `Ridge` and `Lasso` (#22684)
Co-authored-by: Saif Ul Islam <saifulislam84210@gmail.com>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-03-07 10:38:43 +01:00
Jérémie du Boisberranger d135a0f8db
MNT additional cleaning in test for 1.1 (#22661) 2022-03-03 10:31:02 +01:00
JSchuerz 4a52eb6de9
DOC Use :doi: and :arxiv: directives for references (#22603)
Co-authored-by: Chiara Marmo <cmarmo@users.noreply.github.com>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-03-02 15:15:44 +01:00
Jérémie du Boisberranger f14af688b7
FIX Make Ridge*CV warn about rescaling alphas with scaling (#22585) 2022-03-02 13:59:04 +01:00
Jérémie du Boisberranger 34f9dbf541
MNT Clean fixes and compat for old versions of our dependencies (#22642)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-03-02 11:32:06 +01:00
Thomas J. Fan f1d3417b08
MNT Drops Python 3.7 in CI, wheel building, and docs (#22617)
* MNT Drops Python 3.7

* MNT Bump NumPy and SciPy

* FIX Fix build

* FIX Bump versions improved

* DOC Fixes numpy version [pypy]

* BLD [pypy] [icc-build]

* Update docs

* MAINT use scipy.optimize.LinearConstraint in test

* MAINT scipy 1.1.0 related code clean-up

* scipy>=1.3.2 in pyproject.toml's build deps

* [cd build]

* DOC Adds comment about pypy

* MAINT remove _astype_copy_false

* FIX Update check for python version in setup.py

Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-02-28 18:23:02 +01:00
Meekail Zain 7a2a0f74ca
ENH Bayesian regression model `dtype` consistency (#22525)
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Imbert Arthur <arthur.imbert@inria.fr>
2022-02-27 08:38:37 -05:00
Arturo Amor 34d39c7da6
MNT Add validation for parameter alphas in LassoCV (#22305)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2022-02-26 11:22:11 -05:00
Thomas J. Fan 9abeb861ec
MNT Remove unused private attribute _residues from LinearRegression (#22334) 2022-02-19 12:16:03 +01:00
combscCode e11c4d21a4
DOC Ensures that orthogonal_mp passes numpydoc validation (#22501) 2022-02-16 17:05:01 +01:00
combscCode 6e39fd6886
DOC Ensures that lars_path passes numpydoc validation (#22500) 2022-02-16 15:59:15 +01:00
Olivier Grisel 4ca4f3bbcd
FIX make the shape of LogisticRegression(solver="liblinear") consistent with other solvers (#21998)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-02-15 16:40:10 +01:00
Thomas J. Fan 1fc86b6aac
MNT Update black to stable version (#22474) 2022-02-15 11:36:26 +01:00
Christian Lorentzen d8d5637cfe
ENH Loss module LogisticRegression (#21808)
* ENH replace loss in linear logistic regression

* MNT remove logistic regression's own loss functions

* CLN remove comment

* DOC add whatsnew

* DOC more precise whatsnew

* CLN restore improvements of #19571

* ENH improve fit time by separating mat-vec in multiclass

* DOC update whatsnew

* not only a bit ;-)

* DOC note memory benefit for multiclass case

* trigger CI

* trigger CI

* CLN rename variable to hess_prod

* DOC address reviewer comments

* CLN remove C/F for 1d arrays

* CLN rename to gradient_per_sample

* CLN rename alpha to l2_reg_strength

* ENH respect F-contiguity

* TST fix sag tests

* CLN rename to LinearModelLoss

* CLN improve comments according to review

* CLN liblinear comment

* TST add / move test to test_linear_loss.py

* CLN comment placement

* trigger CI

* CLN add comment about contiguity of raw_prediction

* DEBUG debian-32

* DEBUG test only linear_model module

* Revert "DEBUG test only linear_model module"

This reverts commit 9d6e6987ff.

* DEBUG test -k LogisticRegression

* Revert "DEBUG test -k LogisticRegression"

This reverts commit c203167041.

* Revert "DEBUG debian-32"

This reverts commit ef0b98f232.

* DEBUG set n_jobs=1

* Revert "DEBUG set n_jobs=1"

This reverts commit c7f6f72a8c.

* CLN always use n_threads=1

* CLN address review

* ENH avoid array copy

* CLN simplify L2 norm

* CLN rename w to weights

* CLN rename to hessian_sum and hx_sum

* CLN address review

* CLN rename to init arg and attribute to base_loss

* CLN apply review suggestion

Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org>

* CLN base_loss instead of _loss attribute

Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org>
2022-02-14 11:55:17 +01:00
Thomas J. Fan 4ff0767087
ENH Better error message for check_scalar (#22218)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-02-11 16:15:30 +01:00
Thomas J. Fan 5f75acdd12
MNT Bump joblib version dependency to 1.0.0 (#22365) 2022-02-09 13:47:18 +01:00
Meekail Zain 9d415dc16d
TST Improved testing logic in `tests/test_logistic.py` (#22314)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-02-08 20:08:19 +01:00
Thomas J. Fan 9f85c9d449
TST Better info when checking for no warnings in tests (#22362) 2022-02-03 11:42:48 +01:00
Sultan Orazbayev cd892f9688
DOC use the arxiv directive in the docstrings (#21418)
Co-authored-by: aufarkari <aufar.di.sini@gmail.com>
Co-authored-by: Chiara Marmo <cmarmo@users.noreply.github.com>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-01-28 17:55:55 +01:00
Mohit Sharma 183b82a83a
DOC explicitely mention refitting strategy in EstimatorCV (#21514)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-01-28 16:40:17 +01:00
Reshama Shaikh 561bad9f89
DOC added intervals for parameters for 4 GLM classes (#22076) 2022-01-24 17:12:13 +01:00
Reshama Shaikh b361f37e09
MAINT Use check_scalar to validate scalar in: GeneralizedLinearRegressor (#21946)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2022-01-24 17:11:26 +01:00
Ross Barnowski 24106c2149
DOC Fix incorrect heading underline length in docstrings (#22278) 2022-01-24 09:58:33 -05:00
Arturo Amor d7fc1df9fb
MNT Add validation for parameters in `ElasticNet` (#22240)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-01-22 11:21:44 -05:00
Christian Ritter ddbf5b37d4
ENH Check for nonfinite coordinate descent (#22148)
Co-authored-by: Norbert Preining <norbert@preining.info>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2022-01-20 14:26:39 +01:00
Christian Lorentzen 1d1aadd071
ENH Speed up QuantileRegressor (#22206) 2022-01-14 20:30:41 -05:00
Reshama Shaikh 8d6217107f
DOC adding valid intervals for SGDClassifier class parameters (#22115)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-01-13 23:29:15 +01:00
Yar Khine Phyo 702be7c986
FIX Fix warning for ElasticNetCV l1_ratio=0 (#21724)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2022-01-12 16:12:46 +01:00
Adrian Trujillo Duron 1c24595c74
MAINT rename base_estimator to estimator in RANSACRegressor (#22062) 2022-01-06 19:12:44 +01:00
Andriy bc82e19512
Fix a default value in Perceptron documentation (#22116)
Fix a default value of the `random_state` parameter in Perceptron documentation according to its default value in the code.
2022-01-03 08:58:50 +01:00
Takeshi Oura 5dfa5d979a
ENH Preserving dtype for np.float32 in *DictionaryLearning, SparseCoder and orthogonal_mp_gram (#22002) 2021-12-30 12:16:41 +01:00
Thomas J. Fan 5de723d2f9
CI Fixes wheel building (#22051) 2021-12-24 14:06:21 +01:00
Christian Lorentzen ec3bb7f4b3
DOC fix linear programming derivation comment in QuantileRegressor (#21952) 2021-12-17 15:55:28 +01:00