File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 14
14
coefficients are exactly 0. When regularization gets progressively looser,
15
15
coefficients can get non-zero values one after the other.
16
16
17
- Here we choose the SAGA solver because it can efficiently optimize for the
17
+ Here we choose the liblinear solver because it can efficiently optimize for the
18
18
Logistic Regression loss with a non-smooth, sparsity inducing l1 penalty.
19
19
20
20
Also note that we set a low value for the tolerance to make sure that the model
55
55
56
56
print ("Computing regularization path ..." )
57
57
start = time ()
58
- clf = linear_model .LogisticRegression (penalty = 'l1' , solver = 'saga ' ,
58
+ clf = linear_model .LogisticRegression (penalty = 'l1' , solver = 'liblinear ' ,
59
59
tol = 1e-6 , max_iter = int (1e6 ),
60
- warm_start = True )
60
+ warm_start = True ,
61
+ intercept_scaling = 10000. )
61
62
coefs_ = []
62
63
for c in cs :
63
64
clf .set_params (C = c )
You can’t perform that action at this time.
0 commit comments