Commit Graph

46 Commits

Author SHA1 Message Date
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
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
Christian Lorentzen 1c094728a3
CLN clean _preprocess_data in linear_model (#22762) 2022-03-11 13:48:27 -05: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
Thomas J. Fan 9abeb861ec
MNT Remove unused private attribute _residues from LinearRegression (#22334) 2022-02-19 12:16:03 +01:00
Guillaume Lemaitre 90e04a5f15
FIX add support for multilabel classification in RidgeClassifier* (#19869)
Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2021-10-27 15:18:02 +02:00
András Simon ccf8e749ba
DOC Linear regression n_jobs doc update (#21258)
* update docstring

* Apply suggestions from code review

Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>

* Update sklearn/linear_model/_base.py

Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>

Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2021-10-12 11:27:32 +02:00
Dimitri Papadopoulos Orfanos 10a5468e90
DOC Remove some str/unicode leftovers from Python 2 (#21270)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-10-08 13:55:15 +02:00
András Simon 9c84abd771
ENH add `only_non_negative` parameter to `_check_sample_weight` (#20880)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-09-08 13:45:48 +02:00
Thomas J. Fan 786c4e5e39
DOC Adds feature_names_in_ to docstrings (#20787) 2021-08-26 13:44:45 +02:00
Thomas J. Fan 3ae7c76153
STY Enables black with experimental_string_processing=true (#20412) 2021-06-29 09:47:04 +02:00
Glòria Macià Muñoz a2ee56c130
DOC Ensures that LinearRegression passes numpydoc validation (#20369)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-06-28 10:04:24 +02:00
Thomas J. Fan 82df48934e
MNT Applies black formatting to most of the code base (#18948) 2021-06-17 14:21:09 -04:00
Olivier Grisel 5f3bfccb8a
[MRG] FIX sample_weight invariance for linear models (#19616)
Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org>
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2021-06-12 14:44:14 +02:00
Guillaume Lemaitre 1cd282d600
DOC add n_features_in_ in the documentation (#20236) 2021-06-09 16:58:03 +02:00
Tom Dupré la Tour f6e6ad2d9e
MNT clean futurewarning for 1.0 | _deprecate_positional_args (#20002)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-05-14 11:30:27 -04:00
Thomas J. Fan d22fe3e922
CI Lowers precision for doctest in LinearRegression (#19988) 2021-04-26 16:39:03 +02:00
Jérémie du Boisberranger 684b7d1955
FIX detect near constant feature in StandardScaler and linear models (#19788)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-04-14 13:34:22 +02:00
Maria Telenczuk 9cfacf1540
DEP Deprecate 'normalize' in ridge models (#17772)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org>
2021-04-06 21:33:28 +02:00
Maria Telenczuk 1045d16ec1
PERF don't compute variance when normalize is False in linear models (#19606) 2021-03-03 18:43:17 +01:00
Olivier Grisel c748e465c7
FIX Don't scale near-constant features to large values (#19527) 2021-02-25 10:21:52 +01:00
Maria Telenczuk dbd68b2846
MRG fix Normalize for linear models when used with sample_weight (#19426)
Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-02-22 11:48:54 +01:00
Maria Telenczuk 306826f7b6
MRG Deprecates 'normalize' in LinearRegression (_base.py) (#17743)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-01-22 14:57:23 +01:00
Sina Tootoonian 9f86a25a38
DOC Normalization of linear_model decision_function (#19142) 2021-01-13 07:18:06 +00:00
Adam Midvidy 2d95acfe95
ENH/DOC Add additional validation for user-supplied gram matrixes (#19004) 2021-01-05 10:44:52 +01:00
Thomas J. Fan 5946f8bfed
ENH Adds n_features_in_ checks to linear and svm modules (#18578)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Olivier Grisel <olivier.grisel@gmail.com>
2021-01-02 22:42:08 +01:00
Thomas J. Fan 06d6f8a9f6
FIX Passes global configuration when spawning joblib jobs (#17634)
* WIP

* BUG Passes context to joblib jobs

* BUG Fix

* BUG Fix

* CLN Moves delayed into fixes

* CLN Adds linter

* REV Revert diff

* DOC Adds comment for removal

* Use a simple implementation
2020-09-21 16:59:42 +02:00
Albert Villanova del Moral 647fcb1ac1
DOC Fix A to uppercase in See Also docstring section (#18332) 2020-09-04 10:35:01 -04:00
Chiara Marmo 075d424568
FEA Add Nonnegative LinearRegression (#17578)
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
Co-authored-by: Joseph Knox <jknox13@uw.edu>
Co-authored-by: Joseph Knox <joseph.edward.knox@gmail.com>
2020-08-06 08:30:24 -04:00
Thomas J. Fan 7cc0177f8e
MNT Replaces numpy alias with builtin typse (#17687)
* MNT Replaces numpy alias with builtin typse

* STY Lint error
2020-06-24 16:51:51 +02:00
Saurabh Jain 00bc681e10
DOC shorten class links in docstring using tilde (#17470)
* added tilde to bunch of files

* Updated _kde.py

Changed array_like to array-like

* Updated _kde.py

Removed space

* updated _kde.py

Added full stop

* PEP8

Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-06-16 10:44:13 +02:00
Deeksha Madan 58d74c10a6
Replaces array_like with array-like (#17463)
* replacing array_like with array-like

* Replacing array_like with array-like
2020-06-06 12:27:11 -04:00
Nicolas Hug 089c8a17a1
[MRG] MNT requires_y tag with y=None validation (#16622) 2020-04-22 22:41:45 +10:00
Adrin Jalali dc0cc6e9be
[MRG] API kwonly args in impute, inspection, kernel_ridge (#16926)
, and linear_model
2020-04-19 22:58:47 +02:00
Alex Henrie 438bb3a438
MNT Remove unused imports (#16665) 2020-03-11 10:01:51 +11:00
Nicolas Hug d205638475
MNT Introduction of n_features_in_ attr with _validate_data mtd (#16112) 2020-02-29 09:05:11 -05:00
Christian Lorentzen 21686b7147
ENH Sample weights for ElasticNet (#15436) 2020-02-16 14:48:01 +01:00
mo e5c54ca854 DOC Follow doc guideline for LinearRegression docstring (#15988) 2020-01-03 12:00:38 +01:00
Christian Lorentzen 004426ab53 ENH Consistent checks for sample weights in linear models (#15530) 2019-11-15 21:26:09 +01:00
Baran Buluttekin 225a8f30b0 DOC Numpydoc validation of `LinearRegression` (#15458) 2019-11-03 22:07:10 +01:00
Tola A 9c2c263f9b DOC numpydoc validations for LogisticRegression (#15445) 2019-11-02 15:38:50 +01:00
Roman Yurchak 1ede443b7a MNT Docstring validation with numpydoc (#15404) 2019-11-02 09:59:56 +01:00
Andreas Mueller a91bae74aa MNT Add estimator check for not calling __array_function__ (#14702) 2019-10-24 16:42:10 -04:00
Thomas J Fan 0a7adef005 MNT Make modules private in linear_model (#15324) 2019-10-23 15:34:26 +02:00