Commit Graph

67 Commits

Author SHA1 Message Date
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
Mateusz Sokół 702316c271
ENH Array API support for PCA (#26315)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Tim Head <betatim@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2023-07-13 16:58:06 -05:00
Julien Jerphanion dfd299b19e
MAINT Remove soon-to-be deprecated scipy.sparse functions (#26751) 2023-07-12 18:34:01 +02: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
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
Olivier Grisel 5a332e77a1
PERF fix overhead of _rescale_data in LinearRegression (#26207) 2023-04-18 23:42:13 +02:00
Adrin Jalali 893d5accaf
MNT Update black to 23.3.0 (#26110) 2023-04-06 12:14:16 -04: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 a7cd0ca44d
FIX propagate configuration to workers in parallel (#25363)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2023-01-20 12:44:35 -05:00
Ross Barnowski f702e97907
MAINT: Replace np.find_common_type with np.result_type. (#24858) 2022-11-18 11:31:01 +01:00
Jérémie du Boisberranger 8648cf9218
MAINT clean deprecation for 1.2: leftovers (#24647) 2022-10-13 14:54:53 +02:00
Jérémie du Boisberranger e41753ebd5
MAINT Clean deprecation for 1.2: normalize in linear models (#24391) 2022-10-12 14:06:47 +02: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
Thomas J. Fan 02ebf9e68f
MNT Adds dict typing hint to _parameter_constraints for mypy (#24301) 2022-08-30 11:01:10 +02:00
Jérémie du Boisberranger a657465547
convenience constraint for booleans (#23618) 2022-06-15 20:38:51 +02:00
Jérémie du Boisberranger de659b9dee
MNT Param validation: Make it possible to mark a constraint as hidden (#23558) 2022-06-13 11:17:44 +02:00
Malte S. Kurz 79c176de3f
FIX Fix gram validation: dtype-aware tolerance (#22059) 2022-06-07 16:02:05 -04:00
Vishal 4b59c15016
MNT LinearRegression uses _validate_parameters (#23491) 2022-06-04 11:31:41 -04:00
Christian Lorentzen 2605293cbe
MNT return array instead of memory view in coordinate descent (#23015) 2022-05-04 21:11:29 -04:00
PierreAttard b4da3b4063
MNT ensure creation of dataset is deterministic in SGD (#19716)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-04-02 14:07:27 +02: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
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