Commit Graph

69 Commits

Author SHA1 Message Date
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
Adrin Jalali 893d5accaf
MNT Update black to 23.3.0 (#26110) 2023-04-06 12:14:16 -04:00
Jérémie du Boisberranger d7f62b0d9d
MAINT Clean up depreacted "log" loss of SGDClassifier for 1.3 (#25865) 2023-03-16 11:12:37 -04:00
Omar Salman 1a669d8202
ENH Support float32 in SGDClassifier and SGDRegressor (#25587) 2023-02-27 16:26:11 -05:00
Stanislav (Stanley) Modrak aea3cfbf41
DOC Fix typo in alpha parameter description (#25453) 2023-01-23 10:30:43 -05: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
Maxwell 335586a3a6
FIX bagging with SGD and early stopping throws ZeroDivisionError (#23275)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2022-10-28 17:18:40 +02:00
Tim Head ad91259f20
ENH Remove validation from `__init__` for `SGDOneClassSVM` (#24433)
Co-authored-by: iofall <50991099+iofall@users.noreply.github.com>
Co-authored-by: arisayosh <15692997+arisayosh@users.noreply.github.com>
2022-09-15 17:36:50 +02:00
Jérémie du Boisberranger d0c2e1d4bf
cln deprecations (#24385) 2022-09-07 17:07:48 +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
Sean Atukorala 99ae8f8f1b
DOC Updates linear_model.Perceptron regarding t_ (#24073) 2022-08-05 15:45:00 +02:00
Maxwell 3a9e708782
API deprecate penalty='none' for LogisticRegression (#23877)
Co-authored-by: Tom Dupré la Tour <tom.dupre-la-tour@m4x.org>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2022-07-27 15:50:42 +02:00
Nwanna-Joseph 7f0b57e626
MAINT parameter validation in SGD*, PassiveAgressive* and Perceptron (#23521)
Co-authored-by: jeremie du boisberranger <jeremiedbb@yahoo.fr>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Meekail Zain <34613774+Micky774@users.noreply.github.com>
2022-06-24 17:46:18 +02:00
Nwanna-Joseph 526b42fcb0
MNT Used the MAX variable (#23546) 2022-06-07 10:18:10 +02:00
Maxwell 6231e1edc2
FIX SGDRegreesor and SGDClassifier use correct number of validation data (#23256)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: jeremiedbb <jeremiedbb@yahoo.fr>
2022-05-02 13:41:02 +02:00
Christian Lorentzen 0c20ba7449
DEP loss "log" in favor of "log loss" in SGDClassifier (#23046)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-04-07 15:08:45 +02: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
Thomas J. Fan 5f75acdd12
MNT Bump joblib version dependency to 1.0.0 (#22365) 2022-02-09 13:47:18 +01: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
mandjevant 85836a80d5
DOC SGDOneClassSVM docs like SGD classifier and SGD regressor (#21510)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-10-30 16:17:01 +02:00
Guillaume Lemaitre 825388fa75
DOC use Python float instead of C double (#21489) 2021-10-28 16:12:14 +02:00
Jérémie du Boisberranger a9bf7f38d7
FIX delete feature_names_in_ when refitting on a ndarray (#21389)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-10-23 12:30:05 +02:00
millawell f28264022e
DOC renew dead link to paper (#21372) 2021-10-19 15:34:26 -07: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
EricEllwanger 16ed158054
DOC Ensure SGDRegressor passes numpydoc validation (#21097)
Co-authored-by: frellwan <frellwan@hotmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-09-23 16:33:14 +02:00
EricEllwanger 3346c6dfa4
DOC - Ensure that SGDOneClassSVM pass numpydoc validation (#21105)
Co-authored-by: frellwan <frellwan@hotmail.com>
2021-09-23 11:37:16 +02:00
Dimitri Papadopoulos Orfanos f71c031314
DOC Typos found by codespell (#21069) 2021-09-17 19:04:54 +02:00
Thomas J. Fan 786c4e5e39
DOC Adds feature_names_in_ to docstrings (#20787) 2021-08-26 13:44:45 +02:00
Guillaume Lemaitre d44fd44f91
API fix params validation in SGD inherited models (#20683) 2021-08-16 15:35:17 +02:00
Harutaka Kawamura 8cf87a30bb
MNT Replace `@property` on predict methods with `@available_if` (#20667)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-08-13 18:00:21 -04:00
Frederick Robinson cf286be4f3
DOC add remark that SGDClassifier partial_fit does not implement learning rate schemes (#20441)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-07-21 22:29:39 +02:00
Thomas J. Fan 3ae7c76153
STY Enables black with experimental_string_processing=true (#20412) 2021-06-29 09:47:04 +02:00
Guillaume Lemaitre 96b5492dee DOC add type of self for doc consistency 2021-06-28 09:55:44 +02:00
Thomas J. Fan 351ace7935
STY Uses black's with target_version >= 3.7 (#20294) 2021-06-17 15:50:27 -04:00
Thomas J. Fan 82df48934e
MNT Applies black formatting to most of the code base (#18948) 2021-06-17 14:21:09 -04:00
Thomas J. Fan 8e26b0c2a2
STY Minor style changes to prepare for black (#20265) 2021-06-15 15:43:42 +02:00
Thomas J. Fan 9a13bdfaf1
MNT Adds black config and fixes formatting before black (#19031)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2021-06-12 17:14:09 +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
Jérémie du Boisberranger 1991531116
MNT Clean deprecations for 1.0 | SGD (#19320)
Co-authored-by: Olivier Grisel <olivier.grisel@gmail.com>
2021-05-11 16:38:11 -04:00
Albert Thomas c854b83c91
[MRG] Linear One-Class SVM using SGD implementation (#10027)
Co-authored-by: Tom Dupré la Tour <tom.dupre-la-tour@m4x.org>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-03-23 10:53:57 +01:00
Christian Lorentzen b9d6db81ec
[MRG] ENH Consistent loss name for squared error (#19310) 2021-03-19 15:21:34 +01:00
Nicolas Hug c282d6cdb7
DOC clarify that n_iter_no_change is not just for early-stopping for SGD (#19462) 2021-02-18 16:55:00 +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
Guillaume Lemaitre 2218ec4622
MNT change 0.25 to 1.0 and 0.26 to 1.1 in deprecation messages (#19005)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-12-18 16:09:19 +00: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
Ram Rachum 61ec6b9b79
MNT Use raise from in 19 modules (#17835) 2020-08-25 08:57:29 +02:00
Nicolas Hug 1dedc7e6a8
[MRG] Prototype 4 for strict check_estimator mode (#17361) 2020-08-06 12:02:15 +02:00