Commit Graph

284 Commits

Author SHA1 Message Date
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
hmasdev 77bc7f921c
DOC Fix expired links to some references (#22373)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: hmasdev <hmasdev@gmail.com>
2022-02-05 10:58:30 -05:00
Guillaume Lemaitre 4f6a28f2eb
FIX/API Fix AIC/BIC in LassoLarsIC and introduce noise_variance (#21481) 2021-11-23 21:32:26 +01:00
puhuk 337e0d234b
DOC Use :doi: and :arxiv: directives for references (#21099) 2021-10-20 13:53:25 -04:00
gregorystrubel 0b45ac56f1
FIX adjust inliner criteria in RANSACRegressor (#19499)
Co-authored-by: Gregory Strubel <greg@Air-de-Ali.local>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-07-30 15:28:12 +02:00
Mohamed Khoualed 4797222cc4
DOC fix typos in the user guide linear model documentation (#19554)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-07-29 18:08:45 +02:00
Maria Telenczuk 8a63ec40e4
MRG: Deprecate normalize in least_angle models (#17769)
Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org>
2021-06-18 13:54:46 +02:00
Guillaume Lemaitre 7c873713df DOC change figure in user guide of quantile regression 2021-05-26 17:45:01 +02:00
David Dale c1cc67dd06
FEA Add QuantileRegressor estimator (#9978)
Co-authored-by: David Dale <ddale@yandex-team.ru>
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2021-05-25 14:02:37 +02:00
Sandy Khosasi 3a1b4b864d
DOC remove duplicated line of code in linear_model.rst (#19292) 2021-01-28 16:00:39 +01:00
Declan O'Neill 7386948d38
DOC typo in linear_model.rst (#18770) 2020-11-06 08:12:02 +00:00
Sunitha Selvan ae7667ce22
DOC mention LOOCV instead of GCV in RidgeCV (#18154) 2020-08-18 11:32:21 +02: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
Kevin Markham 753da1de06
DOC Minor fixes (#17325) 2020-05-28 10:52:54 -04:00
Chiara Marmo e9340e3f4b
[MRG] DOC Add example about interpretation of coefficients of linear models (#15706)
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
Co-authored-by: Gael Varoquaux <gael.varoquaux@normalesup.org>
Co-authored-by: Joel Nothman <joel.nothman@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-03-11 09:59:23 +11:00
Roman Yurchak 69ea066412
ENH Minimal Generalized linear models implementation (L2 + lbfgs) (#14300)
Co-authored-by: Christian Lorentzen <lorentzen.ch@googlemail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
2020-03-04 14:08:24 +01:00
Chiara Marmo def33e7885 DOC Fix some new sphinx warnings. (#15437) 2019-11-02 07:30:14 -05:00
Nicolas Hug 3b374cc64a [MRG] DOC for RidgeClassifier (#15164) 2019-10-30 15:36:23 +01:00
Nicolas Hug 6a8b3d4c4b DOC reorganize API Ref of linear models (#15115) 2019-10-08 16:57:43 +02:00
Chiara Marmo f24a501e06 DOC Fix "Duplicate labels" & "Duplicate .. target" sphinx warn (#14931) 2019-09-11 13:51:58 +02:00
Thomas J Fan 14f5302b70 DOC Link items explictly (#14817)
* DOC Link items explictly

* STY

* DOC Link another
2019-09-05 11:37:05 +02:00
Nitya Mandyam 7fa78cf169 DOC Adding p-value discussion to linear model docs (#14767) 2019-08-26 22:23:04 +03:00
Nicolas Hug 62d11120c4 DOC make more obvious that logistic regression is regularized by default (#14093) 2019-06-24 15:58:28 +02:00
Thomas J Fan 2e7e06b78f [MRG] Doctest with print change only adjusts default options for doctest (#13991) 2019-06-01 10:53:45 +02:00
Johann Faouzi 8f378ca684 DOC Fix bracket typo in linear_model.rst (#13932) 2019-05-23 23:04:14 +03:00
c56pony 57c04f4e8d ENH Allows setting of initial hyperparameters for BayesianRidge (#13618) 2019-05-22 11:36:30 +10:00
jeromedockes f23e92ed4c ENH handle sparse x and intercept in _RidgeGCV (#13350) 2019-05-07 23:34:07 -04:00
Nicolas Hug 9597da9b02
fix small latex issue (#13680) 2019-04-19 16:19:03 -04:00
Tommy ffdd96adb7 DOC Remove synonyms in documentation of linear models (#13663) 2019-04-18 10:07:46 -07:00
Kuai Yu fec7670ad0 ENH Enable the "sufficient stats" mode of LARS (#11699) 2019-03-06 08:06:47 +01:00
Albert Thomas 0eda10a598 FIX Bayesian ridge regression: returned values to match last update (#12174) 2019-01-10 21:36:03 +11:00
Nicolas Hug 0a07364abd ENH Added penalty='none' to LogisticRegression (#12860) 2019-01-10 09:26:30 +11:00
Nicolas Hug a50c03f975 [MRG] Add pprint for estimators - continued (#11705)
* add pprint for estimators

* strip color from length, add color option

* Minor cleaning, fixes, factoring and docs

* Added some basic tests

* Fixed line length issue

* fixed flake8 and added visual test for review

* Fixed test

* Fixed Python 2 issues (inspect.signature import)

* Trying to fix flake8 again

* Added special repr for functions

* Added some other visual tests

* Changed _format_function in to _format_callable

because callable() returns True also for class objects (which we want to
reprensent with their name as well anyway)

* Consistent output in Python 2 and 3

* WIP

* Now using the builtin pprint module

* pep8

* Added changed_only param

* Fixed printing when string would fit in less than line width

* Fixed printing of steps parameter

* Fixed changed_only param for short estimators

* fixed pep8

* Added some more description in docstring

* changed_only is now an option from set_config()

* Put _pprint.py into sklearn/utils, added tests

* Added doctest NORMALIZE_WHITESPACE where needed

* Fixed tests

* fix test-doc

* fixing test that passed before....

* Fixed tests

* Added test for changed_only and long lines

* typo

* Added authors names

* Added license file

* Added ellipsis based on number of elements in sequence + added increasinly aggressive repr strategies

* Updated whatsnew

* dont use increaingly aggressive strategy

* Fixed tests

* Removed LICENSE file and put license text in _pprint.py

* fixed test_base

* Sorted parameters dictionary for consistent output in 3.5

* Actually using OrderedDict...

* Addressed comments

* Added test for NaN changed parameter

* Update whatsnew

* Added example to set_config()

* Removed example

* Added example in gallery

* Spelling
2018-12-19 23:48:21 -05:00
Andreas Mueller 0554f10ebd DOC typo simple present singular for SGDClassifier in linear model docs (#12804) 2018-12-18 08:43:39 +08:00
Andreas Mueller 4603e481e9 DOC Explain solver choices for LogisticRegression (#12768) 2018-12-14 10:30:57 +08:00
Muhammad Hassaan Rafique 10339f7f02 Update linear_model.rst (#12735)
* Update for Logistic-Regression Table Summary for L-BFGS

* Update for linear_model.rst Logistic-Regression L-BFGS summary.

* Update for Logistic-Regression Doc.

* Logistic-Regression Update

* Update linear_model.rst

* Update jnothman comments

* Update jnothman comments

* Update for jnothman comments.

* test

* test2

* test3

* test4

* Update for Comments from amueller and jnothman

* Update for Comments from amueller and jnothman
2018-12-13 06:07:20 -05:00
Nicolas Hug c1f58745be [MRG] Add elastic net penalty to LogisticRegression (#11646)
* First draft on elasticnet penaly for LogisticRegression

* Some basic tests

* Doc update

* First draft for LogisticRegressionCV.

It seems to be working for binary classification and for multiclass when
multi_class='ovr'. I'm having a hard time figuring out the intricacies
of multi_class='multinomial'.

* Changed default to None for l1_ratio.

added warning message is user sets l1_ratio while penalty is not
elastic-net

* Some more doc

* Updated example to plot elastic net sparsity

* Fixed flake8

* Fixed test by not modifying attribute in fit

* Fixed doc issues

* WIP

* Partially fixed logistic_reg_CV for multinomial.

Also added some comments that are hopefully clear.
Still need to fix refit=False

* Fixed doc issue

* WIP

* Fixed test for refit=False in LogisticRegressionCV

* Fixed Python 2 numpy version issue

* minor doc updates

* Weird doc error...

* Added test to ensure that elastic net is at least as good as L1 or L2
once l1_ratio has been optimized with grid search

Also addressed minor reviews

* Fixed test

* addressed comments

* Added back ignore warning on tests

* Added a functional test

* Scale data in test... Now failing

* elastic-net --> elasticnet

* Updated doc for some attributes and checked their shape in tests

* Added l1_ratio dimension to coefs_paths and scores attr

* improve example + fix test

* FIX incorrect lagged_update in SAGA

* Add non-regression test for SAGA's bug

* FIX flake8 and warning

* Re fixed warning

* Updated some tests

* Addressed comments

* more comments and added dimension to LogisticRegressionCV.n_iter_ attribute

* Updated whatsnew for 0.21

* better doc shape looks

* Fixed whatnew entry after merges

* Added dot

* Addressed comments + standardized optional default param docstrings

* Addessed comments

* use swapaxes instead of unsupported moveaxis (hopefully fixes tests)
2018-11-21 20:23:57 -05:00
TakingItCasual f4e7d2b19a Converting http to https (3)... (#12302) 2018-10-05 18:50:31 +02:00
Denis Kataev b020f62250 MNT Apply pep8 to docs code (#12275) 2018-10-05 22:51:42 +08:00
TakingItCasual 1e052e9da9 Converting http to https (2)... (#12292) 2018-10-04 23:06:14 +02:00
Andreas Mueller 59b15c5249 add explicit mention of scaing for saga in logisticregression docs. (#12236) 2018-10-01 21:17:18 +02:00
Mark Hannel e1c3c228b2 DOC Fixing summary table in the linear model documentation. (#12220) 2018-09-30 08:39:41 +08:00
Joel Nothman 7ed61a24fe ENH add multi_class='auto' for LogisticRegression, default from 0.22; default solver will be 'lbfgs' (#11905)
* Change default solver in LogisticRegression
* This is an API change, not a feature
* Decrease numerical precision in LogisticRegression doctest
* ENH add multi_class='auto' for LR, default from 0.22
* No warning when binary
2018-08-26 23:00:02 +03:00
Olivier Grisel 40e6c43cb4
Joblib 0.12.2 (#11741)
* joblib 0.12.2

* Export _joblib's register_parallel_backend

* Use latest version of coverage
2018-08-03 12:34:25 +02:00
Alexandre Boucaud f158e2dfe2 [MRG+1] Change CV defaults to 5 (#11557)
* add FutureWarning for methods with defaults=3

* add explicit cv values to fix assertion errors

* add tests for catching the FutureWarning

* Write current deprecation version

* Add deprecation in docstring

* change default cv value to None

* change cv from 3 to 5 in the examples

* upgrade doctests

* update doctest in tutorial

* update doctest in cross-validation doc

* fix tests

* add entry to whats new

* address Gael comments

* address Gael comments 2

* fix wrong indentation

* update doc

* add docstring deprecation warning in CV subclasses

* address Andy's comments

* fix PR number

* fix flake8

* add filterwarnings in tests

* fix doctests

* cv=None mendatory in Ridge

* fix warning related errors

* skip some doctests warnings

* make travis happy

* change from deprecated to versionchanged

* fix doctests and remove skipping

* address comments
2018-07-19 14:46:11 +02:00
josephsalmon 4e51f29c6b Improving doc: min, argmin, and bold font (#11385) 2018-06-29 09:48:23 +02:00
josephsalmon ba849f4b3e Improve linear_model.rst : error on Huber function (#11384)
The subscript of the Huber function (H_m) was not relevant:
it was written H_m but the index m was nowhere used later; it should have been epsilon instead.
2018-06-28 22:36:31 +02:00
josephsalmon 646450b70b DOC Update linear_model.rst : min should be \min (#11374) 2018-06-28 18:04:58 +10:00
Alexandre Gramfort 4d8ee4388a DOC: add references for CD in LASSO and duality gap criterion (#11302) 2018-06-17 12:11:08 +02:00
Loïc Estève 1c61b8ac1b DOC Fix some example refs due to renaming examples (#11214) 2018-06-07 10:40:30 +08:00