3636
3737def test_tradaboost_fit ():
3838 np .random .seed (0 )
39- model = TrAdaBoost (LogisticRegression (penalty = 'none' ,
39+ model = TrAdaBoost (LogisticRegression (penalty = None ,
4040 solver = 'lbfgs' ),
4141 n_estimators = 20 )
4242 model .fit (Xs , ys_classif , Xt = Xt [:10 ], yt = yt_classif [:10 ])
@@ -111,7 +111,7 @@ def test_twostagetradaboostr2_fit():
111111
112112def test_tradaboost_deepcopy ():
113113 np .random .seed (0 )
114- model = TrAdaBoost (LogisticRegression (penalty = 'none' ,
114+ model = TrAdaBoost (LogisticRegression (penalty = None ,
115115 solver = 'lbfgs' ),
116116 n_estimators = 20 )
117117 model .fit (Xs , ys_classif , Xt = Xt [:10 ], yt = yt_classif [:10 ])
@@ -124,7 +124,7 @@ def test_tradaboost_multiclass():
124124 np .random .seed (0 )
125125 X = np .random .randn (10 , 3 )
126126 y = np .random .choice (3 , 10 )
127- model = TrAdaBoost (LogisticRegression (penalty = 'none' ,
127+ model = TrAdaBoost (LogisticRegression (penalty = None ,
128128 solver = 'lbfgs' ), Xt = X , yt = y ,
129129 n_estimators = 20 )
130130 model .fit (X , y )
@@ -177,13 +177,13 @@ def test_tradaboost_above_05():
177177
178178def test_tradaboost_lr ():
179179 np .random .seed (0 )
180- model = TrAdaBoost (LogisticRegression (penalty = 'none' ),
180+ model = TrAdaBoost (LogisticRegression (penalty = None ),
181181 Xt = Xt [:10 ], yt = yt_classif [:10 ],
182182 n_estimators = 20 , lr = .1 )
183183 model .fit (Xs , ys_classif )
184184 err1 = model .estimator_errors_
185185
186- model = TrAdaBoost (LogisticRegression (penalty = 'none' ),
186+ model = TrAdaBoost (LogisticRegression (penalty = None ),
187187 Xt = Xt [:10 ], yt = yt_classif [:10 ],
188188 n_estimators = 20 , lr = 2. )
189189 model .fit (Xs , ys_classif )
0 commit comments