Commit Graph

390 Commits

Author SHA1 Message Date
Dimitri Papadopoulos Orfanos 1ba0783f64
MAINT Fix typos found by codespell (#26852) 2023-07-18 10:20:40 +02:00
Stefanie Senger 6b367d54ef
DOC notebook style and improved description for plot ridge coeffs example (#26554)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-07-11 11:11:26 +02:00
Guillaume Lemaitre 5d145bf760
DOC fixes intersphinx warnings (#26779)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2023-07-10 20:25:35 +00:00
Adrin Jalali 42173fdb34
MNT add isort to ruff's rules (#26649) 2023-06-21 17:50:07 +02:00
Dimitri Papadopoulos Orfanos 6ca4970ca2
MAINT Remove encoding declarations: `# -*- coding: utf-8 -*-` (#26467) 2023-05-31 17:26:00 +02:00
Dimitri Papadopoulos Orfanos 2fd022d972
MAINT Fix typos found by codespell (#26448) 2023-05-31 10:19:21 +02:00
Arturo Amor 4ccf41beeb
DOC Rework Lasso and Elastic Net for Sparse Signals example (#25429)
Co-authored-by: ArturoAmorQ <arturo.amor-quiroz@polytechnique.edu>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-05-25 10:26:50 +02:00
Tim P 74e23aab06
DOC Fix wording in plot quantile regression example. (#26425) 2023-05-24 14:10:20 +00:00
Tom Dupré la Tour 463d1665e6
FIX improve convergence criterion for LogisticRegression(penalty="l1", solver='liblinear') (#25214)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2023-04-17 10:05:16 -07: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 d226c9dc02
API Deprecate data_transposed in make_sparse_coded_signal (#25784) 2023-03-09 09:40:56 +01:00
as-90 22336afec6
DOC fix comment in plot_logistic_l1_l2_sparsity.py (#25633)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2023-02-17 15:51:57 -05:00
Juan Felipe Arias 9c4c13004d
DOC FIX MatplotlibDeprecationWarnings for plot_sgd_early_stopping.py (#24841)
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
Co-authored-by: jeremie du boisberranger <jeremiedbb@yahoo.fr>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-11-18 17:10:42 +01:00
juanfe88 ca0862a9db
DOC remove MatplotlibDeprecationWarnings for plot_lasso_and_elasticnet.py example (#24832)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-11-04 21:55:02 +01:00
Michael Hornstein 49c3c17209
DOC remove MatplotlibDeprecationWarnings for plot_omp.py example (#24833) 2022-11-04 21:15:46 +01:00
Ashwin Mathur ed98b7cf12
DOC remove MatplotlibDeprecationWarnings for `pyplot_ols_3d.py` example (#24820)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-11-03 16:57:09 +01:00
Christine P. Chai 486bc66cba
DOC added description for RANSAC algorithm (#24402) 2022-11-03 11:53:12 +01:00
Christian Lorentzen ff9344f3d8
FEA add (single) Cholesky Newton solver to GLMs (#24637)
* FEA add NewtonSolver, CholeskyNewtonSolver and QRCholeskyNewtonSolver

* ENH better singular hessian special solve

* CLN fix some typos found by reviewer

* TST assert ConvergenceWarning is raised

* MNT add BaseCholeskyNewtonSolver

* WIP colinear design in GLMs

* FIX _solve_singular

* FIX false unpacking in

* TST add tests for unpenalized GLMs

* TST fix solutions of glm_dataset

* ENH add SVDFallbackSolver

* CLN remove SVDFallbackSolver

* ENH use gradient step for singular hessians

* ENH print iteration number in warnings

* TST improve test_linalg_warning_with_newton_solver

* CLN LinAlgWarning fron scipy.linalg

* ENH more robust hessian

* ENH increase maxls for lbfgs to make it more robust

* ENH add hessian_warning for too many negative hessian values

* CLN some warning messages

* ENH add lbfgs_step

* ENH use lbfgs_step for hessian_warning

* TST make them pass

* TST tweek rtol for lbfgs

* TST add rigoros test for GLMs

* TST improve test_warm_start

* ENH improve lbfgs options for better convergence

* CLN fix test_warm_start

* TST fix assert singular values in datasets

* CLN address most review comments

* ENH enable more vebosity levels for lbfgs

* DOC add whatsnew

* CLN remove xfail and clean a bit

* CLN docstring about minimum norm

* More informative repr for the glm_dataset fixture cases

* Forgot to run black

* CLN remove unnecessary filterwarnings

* CLN address review comments

* Trigger [all random seeds] on the following tests:
test_glm_regression
test_glm_regression_hstacked_X
test_glm_regression_vstacked_X
test_glm_regression_unpenalized
test_glm_regression_unpenalized_hstacked_X
test_glm_regression_unpenalized_vstacked_X
test_warm_start

* CLN add comment for lbfgs ftol=64 * machine precision

* CLN XXX code comment

* Trigger [all random seeds] on the following tests:

test_glm_regression
test_glm_regression_hstacked_X
test_glm_regression_vstacked_X
test_glm_regression_unpenalized
test_glm_regression_unpenalized_hstacked_X
test_glm_regression_unpenalized_vstacked_X
test_warm_start

* CLN link issue and remove code snippet in comment

* Trigger [all random seeds] on the following tests:

test_glm_regression
test_glm_regression_hstacked_X
test_glm_regression_vstacked_X
test_glm_regression_unpenalized
test_glm_regression_unpenalized_hstacked_X
test_glm_regression_unpenalized_vstacked_X
test_warm_start

* CLN add catch_warnings

* Trigger [all random seeds] on the following tests:

test_glm_regression
test_glm_regression_hstacked_X
test_glm_regression_vstacked_X
test_glm_regression_unpenalized
test_glm_regression_unpenalized_hstacked_X
test_glm_regression_unpenalized_vstacked_X
test_warm_start

* Trigger [all random seeds] on the following tests:

test_glm_regression
test_glm_regression_hstacked_X
test_glm_regression_vstacked_X
test_glm_regression_unpenalized
test_glm_regression_unpenalized_hstacked_X
test_glm_regression_unpenalized_vstacked_X
test_warm_start

* [all random seeds]

test_glm_regression
test_glm_regression_hstacked_X
test_glm_regression_vstacked_X
test_glm_regression_unpenalized
test_glm_regression_unpenalized_hstacked_X
test_glm_regression_unpenalized_vstacked_X
test_warm_start

* Trigger with -Werror [all random seeds]

test_glm_regression
test_glm_regression_hstacked_X
test_glm_regression_vstacked_X
test_glm_regression_unpenalized
test_glm_regression_unpenalized_hstacked_X
test_glm_regression_unpenalized_vstacked_X
test_warm_start

* ENH increase maxls to 50

* [all random seeds]

test_glm_regression
test_glm_regression_hstacked_X
test_glm_regression_vstacked_X
test_glm_regression_unpenalized
test_glm_regression_unpenalized_hstacked_X
test_glm_regression_unpenalized_vstacked_X
test_warm_start

* Revert "Trigger with -Werror [all random seeds]"

This reverts commit 99f4cf99ca.

* TST add catch_warnings to filterwarnings

* TST adapt tests for newton solvers

* CLN cleaner gradient step with gradient_times_newton

* DOC add whatsnew

* ENH always use lbfgs as fallback

* TST adapt rtol

* TST fix test_linalg_warning_with_newton_solver

* CLN address some review comments

* Improve tests related to convergence warning on collinear data

* overfit -> fit

* Typo in comment

* Apply suggestions from code review

* ENH fallback_lbfgs_solve
- Do not use lbfgs steps, fall back complete to lbfgs

* ENH adapt rtol

* Improve test_linalg_warning_with_newton_solver

* Better comments

* Fixed Hessian casing and improved warning messages

* [all random seeds]

test_linalg_warning_with_newton_solver

* Ignore ConvergenceWarnings for now if convergence is good

* CLN remove counting of warnings

* ENH fall back to lbfgs if line search did not converge

* DOC better comment on performance bottleneck

* Update GLM related examples to use the new solver

* CLN address reviewer comments

* EXA improve some wordings

* CLN do not pop "solver in parameter constraints

* CLN fix typos

* DOC fix docstring

* CLN remove solver newton-qr-cholesky

* DOC update PR number in whatsnew

* CLN address review comments

* CLN remove unnecessary catch_warnings

* CLN address some review comments

* DOC more precise whatsnew

* CLN use init_zero_coef

* CLN use and test init_zero_coef

* CLN address some review comments

* CLN mark NewtonSolver as private by leading underscore

* CLN exact comments for inner_solve

* TST add test_newton_solver_verbosity

* TST extend test_newton_solver_verbosity

* TST logic in test_glm_regression_unpenalized

* TST use count_nonzero

* CLN remove super rare line search checks

* MNT move Newton solver to new file _newton_solver.py

Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2022-10-24 22:16:45 +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
Peter Steinbach 1645a8a283
DOC fix labels in legend of plot_logistic example (#24455) 2022-09-16 16:57:33 +02:00
Xiao Yuan e36a1b366f
DOC Fix some typos (#24300) 2022-08-29 12:17:46 -04:00
Guillaume Lemaitre a7e27dab2c
API prepare change of default solver QuantileRegressor (#23637)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-06-24 12:23:33 +02:00
Loïc Estève 9cb86c8c39
DOC Use notebook style for remaining notebooks (#23365) 2022-05-13 18:07:24 +02:00
Guillaume Lemaitre a47d569e67
ENH improve ARFF parser using pandas (#21938)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@gmail.com>
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
2022-05-12 18:21:15 +02:00
Chiara Marmo 769d3d4955
Fix various sphinx warnings. (#23310) 2022-05-09 10:20:38 +02:00
Olivier Grisel 85787fcb56
DOC improve compound poisson gamma example (#23268)
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2022-05-05 17:23:30 +02:00
Daniela Fernandes c26000ed26
DOC use notebook-style in linear_model/plot_ridge_path.py (#23209) 2022-04-26 22:44:41 +02:00
Arturo Amor d71bfe1df5
DOC Rework plot_ard.py example (#22747)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-04-21 12:17:53 +02:00
arthurmello b99bd36830
DOC use notebook-style for plot_theilsen (#23002)
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
2022-04-06 08:34:12 +02:00
2357juan 24ef3881d7
DOC Update notebook style for plot_bayesian_ridge_curvefit (#22916)
Co-authored-by: Juan Gomez <jgomez75@gatech.edu>
2022-03-30 15:43:33 +02:00
Thomas J. Fan d400723a21
FEA Add DecisionBoundaryDisplay (#16061)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
2022-03-29 16:36:31 +02:00
Thomas J. Fan d4aad64b1e
MNT Update to black 22.3.0 to resolve click error (#22983)
* MNT Update to black 22.3.0 to resolve click error

* STY Update for new black version
2022-03-29 12:04:41 +02:00
Gabriel Stefanini Vicente ffa0898d5a
API Add data_transposed argument and warning to make_sparse_coded_signal (#21425)
Co-authored-by: Andreas Mueller <t3kcit@gmail.com>
Co-authored-by: jeremie du boisberranger <jeremiedbb@yahoo.fr>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-03-22 16:01:42 +01:00
Jérémie du Boisberranger bb5ab53f94
API Config: change default display to "diagram" (#22856) 2022-03-21 15:43:07 +01:00
Dimitri Papadopoulos Orfanos ee5a1b69d1
DOC, MNT Typos found by codespell (#22906) 2022-03-20 19:16:39 +01:00
fkaren27 d1a72af8a6
DOC use notebook-style for plot_bayesian_ridge.py (#22794)
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
2022-03-18 14:57:33 +01:00
Chloe-Agathe Azencott 7f5fce9ea4
DOC Use notebook style for plot_lasso_dense_vs_sparse_data (#22789)
* split in two cells and used fstrings

* fixed lined length + added comments + did not redensify a previously sparsified matrix
2022-03-13 10:34:27 +01:00
Sam Adam Day 391baef660
DOC: use notebook-style for plot_ols_3d (#22547)
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
2022-02-23 10:18:29 +01:00
alexanmv 46f15a00d2
DOC: use notebook-style for plot_logistic_path.py (#22536)
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
2022-02-22 11:55:00 +01:00
Thomas J. Fan 1fc86b6aac
MNT Update black to stable version (#22474) 2022-02-15 11:36:26 +01:00
Bijil Subhash 4f70d8585b
DOC fix section marker in plot_ard.py examples (#22481) 2022-02-14 11:27:54 +01:00
Maxwell c4be686fad
DOC use notebook-style for plot_lasso_and_elasticnet (#22423) 2022-02-10 08:13:01 +01:00
Thomas J. Fan 6307262210
DOC Fixes plot_sgd example to be consistent with 0.24 (#22424) 2022-02-09 18:12:13 +01:00
Sven Eschlbeck c29fe81218
DOC Increase execution speed of plot_sgd_comparison (#21610)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-12-09 12:40:55 -05:00
Loïc Estève edc2730c0a
Use as_frame=False for mnist_784 examples to reduce memory usage (#21922) 2021-12-09 10:24:03 +01:00
Mr. Leu 0852d7bc9c
updated epoch and training size (#21773)
Co-authored-by: Alex Leu <alexcleu@ucla.edu>
2021-11-26 15:23:11 +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
Himanshu Kumar f223199367
DOC fix typos and code in logistic regression example (#21596)
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2021-11-08 10:32:11 -05:00
Ross Barnowski 108e966efb
DOC: Minor updates to polynomial interpolation example (#21492) 2021-10-29 08:49:49 -04:00
Dimitri Papadopoulos Orfanos d4d5f8c7e0
MAINT consistent use of `print(__doc__)` in examples (#21307)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-10-22 15:33:22 +02:00