Commit Graph

2325 Commits

Author SHA1 Message Date
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
Venkatachalam N 9cc494d424
ENH support sparse data input for QuantileRegressor (#21086)
only for highs* solvers
2021-12-15 13:43:59 +01:00
András Simon d72bd02b09
TST Speed up slow test linear_model/tests/test_quantile.py::test_asymmetric_error (#21546) 2021-12-10 15:34:51 +01:00
Olivier Grisel 670133dbc4
MAINT reduce scope of test_linear_models_cv_fit_for_all_backends to reduce CI usage (#21918)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-12-10 02:43:27 +01:00
Arturo Amor 3e0f49b623
MNT Add validation for parameter `alphas` in `RidgeCV` (#21606)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2021-12-01 18:56:21 +01:00
Arturo Amor cacc034bba
MNT Add validation of scalar parameters in Ridge (#21341)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-12-01 12:05:18 +01:00
Guillaume Lemaitre 4f6a28f2eb
FIX/API Fix AIC/BIC in LassoLarsIC and introduce noise_variance (#21481) 2021-11-23 21:32:26 +01:00
mandjevant e52c7671b6
DOC fix extra . between 1e-3 in TheilSenRegressor's docstring (#21623) 2021-11-12 10:45:25 +01:00
ArturoAmor 2cf3c55807
MNT Postpone conversion of `RidgeCV`'s `alphas` out of `__init__` (#21506) 2021-11-03 18:41:21 +01:00
Jérémie du Boisberranger 1f8825c8dd
MNT Centralize common cython compiler directives (#21512) 2021-11-03 13:26:23 +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
mandjevant bb7e34bc52
DOC fix typo in RidgeCV docstring (#21509) 2021-10-30 12:16:17 +02:00
Olivier Grisel 2571cb2989
Improve validation messages with infinite data (#21219)
* Improve validation messages with infinite data

* Extend and fix validation tests

* Test and fix extended error message

* data_name => input_name

* Mention estimators that natively support missing values

* More informative error message

* cosmetic

* typo

* Fix broken tests

* Fix test_knn

* Add changelog entry

* Fix broken test for param search models

* Missing input names

* Allow Y and y in estimator checks

* Add missing input names

* Fix input_name for FunctionTransformer

* More missing input names

* Update test

* More test fixes on scores

* Simplify message to avoid to make generic fallback meaningful

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

* More informative estimator checks failure messages

* Make sure the estimator name is passed correctly in _validate_data

* Simplify calls to _validate_data

* Handle estimator name in private _check_y helper

* More specific error message

* Add estimator to check_X_params and check_y_params

* Add .. versionadded flags in public docstrings

* Update changelog

* Improve _validate_data's docstring

* Typo in doc/whats_new/v1.1.rst

* Make _check_estimator_name return None if estimator == None

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

* check_params dict updates with style

* Increase test coverage

Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-10-29 15:59:57 +02:00
Guillaume Lemaitre 825388fa75
DOC use Python float instead of C double (#21489) 2021-10-28 16:12:14 +02:00
mandjevant 2314732a84
DOC Fix precompute parameter docstring in Lasso (#21475) 2021-10-28 16:09:06 +02: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
spikebh ef7a02845f
DOC Ensures that MultiTaskElasticNetCV passes numpydoc validation (#21405)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-10-23 13:05:37 +02:00
Gabriel Stefanini Vicente 7288aee89e
DOC Ensures that PassiveAggressiveRegressor passes numpydoc validation (#21413)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-10-23 12:59:53 +02:00
spikebh ee5fddc7e2
DOC Ensures that OrthogonalMatchingPursuitCV passes numpydoc validation (#21412) 2021-10-23 12:58:36 +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
Olivier Grisel 1a7eec8af1
XFAIL test_linear_model_normalize_deprecation_message on macos (#21396) 2021-10-22 13:08:47 +02:00
Pinky c3f41ae198
DOC Ensures that MultiTaskLassoCV passes numpydoc validation (#21256)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-10-21 11:25:55 +02:00
spikebh 5187554a00
DOC Ensures that MultiTaskElasticNet passes numpydoc validation (#21381)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-10-21 10:53:54 +02:00
Manimaran 3f49d5fd31
DOC Ensures that OrthogonalMatchingPursuit passes numpydoc validation (#21296) 2021-10-20 17:24:56 +02:00
Felix Glushchenkov 8762133495
DOC ensures MultiTaskLasso passes numpydoc validation (#21363) 2021-10-20 16:55:29 +02:00
Olivier Grisel bd8528db3d
MAINT Shorten parametrized test names with long error messages (#21364)
* Apply suggestions from code review

Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-10-19 15:38:18 -07:00
millawell f28264022e
DOC renew dead link to paper (#21372) 2021-10-19 15:34:26 -07:00
Thomas J. Fan 5aecf201a3
CI Fixes test_rank_deficient_design (#21345)
Co-authored-by: Olivier Grisel <olivier.grisel@gmail.com>
2021-10-18 10:52:08 +02:00
Jenny Vo 682bd050be
DOC Ensures that PassiveAggressiveClassifier passes numpydoc validation (#21226)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-10-12 22:56:27 +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
Thomas J. Fan d1285a9232
DOC Adds missing imports into examples and test them (#21186) 2021-09-29 13:51:33 +02:00
Tom Dupré la Tour 762eca546a
FIX improve error message for large sparse matrix input in LogisticRegression (#21093) 2021-09-24 11:05:53 +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 b4f7f86d28
DOC - Ensure that TweedieRegressor pass numpydoc validation (#21104)
Co-authored-by: frellwan <frellwan@hotmail.com>
2021-09-23 11:38:07 +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
EricEllwanger 07f4e4c99d
DOC Ensure TheilSenRegressor passes numpydoc validation (#21087)
Co-authored-by: frellwan <frellwan@hotmail.com>
2021-09-20 22:56:55 +02:00
Dimitri Papadopoulos Orfanos f71c031314
DOC Typos found by codespell (#21069) 2021-09-17 19:04:54 +02:00
EricEllwanger 2aba1c88f8
DOC Ensure that RANSACRegressor passes numpydoc validation (#21072)
Co-authored-by: frellwan <frellwan@hotmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-09-17 14:14:45 +02:00
EricEllwanger 7766920ed9
DOC Ensure HuberRegressor passes numpydoc validation (#21062)
Co-authored-by: frellwan <frellwan@hotmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-09-17 11:48:33 +02:00
Guillaume Lemaitre 047cc2ec0c
TST solve issues in PyPy (#20978)
* TST fix brittle test in pypy for error message

* iter

* Update test_sgd.py

* Update test_sgd.py

* remove pypy3 in PRs
2021-09-09 15:10:14 +02:00
baam 289dab9a87
DOC Ensures that GammaRegressor passes numpydoc validation (#20973)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-09-08 17:33:56 +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
genvalen 642127806a
DOC use backticks for n_samples and n_features in X docstring (#20914) 2021-09-02 13:35:03 +02:00
Olivier Grisel 9fab35864f
Fix OvOClassifier.n_features_in_ and other unexpected warning at prediction time when checking feature_names_in_ (#20853)
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2021-09-01 11:36:01 +02:00
baam b8986ebbf0
DOC Ensures that ElasticNetCV passes numpydoc validation (#20844) 2021-08-31 17:51:42 +02:00
Thomas J. Fan 786c4e5e39
DOC Adds feature_names_in_ to docstrings (#20787) 2021-08-26 13:44:45 +02:00