From 6a25717532fbf9086ab44eb395ee673da6d9ca5a Mon Sep 17 00:00:00 2001 From: Peter Prettenhofer Date: Tue, 3 Dec 2013 09:03:41 +0100 Subject: [PATCH] set l1_ratio to (1.0 - l1_ratio) --- examples/plot_train_error_vs_test_error.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/plot_train_error_vs_test_error.py b/examples/plot_train_error_vs_test_error.py index 65af825f7b29b..bb29d9242f1dd 100644 --- a/examples/plot_train_error_vs_test_error.py +++ b/examples/plot_train_error_vs_test_error.py @@ -35,7 +35,7 @@ ############################################################################### # Compute train and test errors alphas = np.logspace(-5, 1, 60) -enet = linear_model.ElasticNet(l1_ratio=0.7) +enet = linear_model.ElasticNet(l1_ratio=0.3) train_errors = list() test_errors = list() for alpha in alphas: