Commit Graph

409 Commits

Author SHA1 Message Date
Adrin Jalali 51c8e0e19d
CLN replace authors with the standard line (#29250) 2024-06-17 17:57:02 +00:00
mathurinm 972e17fe1a
DOC use semilogx in lasso paths (#29264) 2024-06-15 15:15:13 +00:00
Adrin Jalali 55ca335e42
CLN use new license notice line (#29246) 2024-06-13 15:51:09 +02:00
João Morais a6e1d2fdf7
DOC Removing warnings from plot_logistic_multinomial examples (#29120) 2024-05-28 09:19:48 +00:00
João Morais 8798dfebd5
DOC Removing warnings from plot_sgd_iris example (#29121) 2024-05-28 11:37:01 +08:00
Adrin Jalali 34db65a3ad
DOC use pydata-sphinx-theme for the website (#29038)
Co-authored-by: Yao Xiao <108576690+Charlie-XIAO@users.noreply.github.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Guillaume Lemaitre <guillaume@probabl.ai>
2024-05-20 19:36:54 +02:00
Christian Lorentzen 2d6e1be005
MNT remove author and license in GLM files (#28799) 2024-05-13 09:58:57 +02:00
Christian Lorentzen 20c8e69d0f
API deprecate multi_class in LogisticRegression (#28703)
Co-authored-by: Jérémie du Boisberranger <jeremie@probabl.ai>
2024-05-03 14:48:25 +02:00
Jérémie du Boisberranger 57a72222da
MAINT Clean up deprecations for 1.5: in KBinsDiscretizer (#28817) 2024-04-11 17:59:05 +00:00
Adrin Jalali c4c5463556
MNT upgrade black version (#28802) 2024-04-10 11:06:55 -04:00
DerWeh a530a176ad
DOC: use f-strings in example (#28767) 2024-04-04 10:48:40 +02:00
Loïc Estève bb87768744
MNT Ignore pandas 2.2 warnings including Pyarrow dependency warnings (#28305)
Co-authored-by: adrinjalali <adrin.jalali@gmail.com>
2024-01-31 11:23:33 +01:00
Yao Xiao 94b84718f9
MNT Work-around sphinx-gallery `UnicodeDecodeError` in recommender system (#27969) 2023-12-18 11:19:34 +01:00
Alex e883b4b8c0
DOC Improve comments for in Tweedie example (#27884)
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2023-12-05 09:22:43 +00:00
Olivier Grisel 3ab6c8cf0c
MAINT Update fetch_openml to use the auto parser by default (#27802) 2023-11-20 11:20:20 +01:00
Dimitri Papadopoulos Orfanos ed82f78769
DOC http:// → https:// (#27581) 2023-10-13 17:26:15 +02:00
Dimitri Papadopoulos Orfanos 0f43434e0c
DOC fix typos found by codespell (#27457) 2023-09-26 15:31:28 +02:00
Guillaume Lemaitre ae2ccbf69a
MAINT fix FutureWarning raised by scikit-learn in examples (#27442) 2023-09-25 15:53:14 +02:00
Guillaume Lemaitre 8331fca667
DOC fix deprecation warning in plot_sgdocsvm_vs_ocsvm (#27449) 2023-09-25 14:34:41 +02:00
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