From ff57c43396a42e3a0fa7af266c427cb6c42176ce Mon Sep 17 00:00:00 2001 From: as-90 Date: Fri, 17 Feb 2023 16:52:30 +0000 Subject: [PATCH 1/2] DOC fix typo in plot_logistic_l1_l2_sparsity --- examples/linear_model/plot_logistic_l1_l2_sparsity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/linear_model/plot_logistic_l1_l2_sparsity.py b/examples/linear_model/plot_logistic_l1_l2_sparsity.py index ce0afef012a2b..3f3e6ba33e699 100644 --- a/examples/linear_model/plot_logistic_l1_l2_sparsity.py +++ b/examples/linear_model/plot_logistic_l1_l2_sparsity.py @@ -40,7 +40,7 @@ # Set regularization parameter for i, (C, axes_row) in enumerate(zip((1, 0.1, 0.01), axes)): - # turn down tolerance for short training time + # turn up tolerance for short training time clf_l1_LR = LogisticRegression(C=C, penalty="l1", tol=0.01, solver="saga") clf_l2_LR = LogisticRegression(C=C, penalty="l2", tol=0.01, solver="saga") clf_en_LR = LogisticRegression( From 200675c7495256fc810e7241e3230c0926941afa Mon Sep 17 00:00:00 2001 From: as-90 <88336957+as-90@users.noreply.github.com> Date: Fri, 17 Feb 2023 18:40:15 +0000 Subject: [PATCH 2/2] Update examples/linear_model/plot_logistic_l1_l2_sparsity.py Co-authored-by: Thomas J. Fan --- examples/linear_model/plot_logistic_l1_l2_sparsity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/linear_model/plot_logistic_l1_l2_sparsity.py b/examples/linear_model/plot_logistic_l1_l2_sparsity.py index 3f3e6ba33e699..e8f5a2d51b637 100644 --- a/examples/linear_model/plot_logistic_l1_l2_sparsity.py +++ b/examples/linear_model/plot_logistic_l1_l2_sparsity.py @@ -40,7 +40,7 @@ # Set regularization parameter for i, (C, axes_row) in enumerate(zip((1, 0.1, 0.01), axes)): - # turn up tolerance for short training time + # Increase tolerance for short training time clf_l1_LR = LogisticRegression(C=C, penalty="l1", tol=0.01, solver="saga") clf_l2_LR = LogisticRegression(C=C, penalty="l2", tol=0.01, solver="saga") clf_en_LR = LogisticRegression(