File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -59,9 +59,7 @@ def sklearn_model(train_data):
59
59
with warnings .catch_warnings ():
60
60
warnings .simplefilter ("ignore" )
61
61
model = LogisticRegression (
62
- multi_class = "multinomial" ,
63
- solver = "lbfgs" ,
64
- max_iter = 10000
62
+ multi_class = "multinomial" , solver = "lbfgs" , max_iter = 10000
65
63
)
66
64
model .fit (X , y )
67
65
return model
Original file line number Diff line number Diff line change @@ -40,9 +40,7 @@ def sklearn_logistic_model():
40
40
with warnings .catch_warnings ():
41
41
warnings .simplefilter ("ignore" )
42
42
model = LogisticRegression (
43
- multi_class = "multinomial" ,
44
- solver = "lbfgs" ,
45
- max_iter = 10000
43
+ multi_class = "multinomial" , solver = "lbfgs" , max_iter = 10000
46
44
)
47
45
model .fit (iris .iloc [:, 0 :4 ], iris ["Species" ])
48
46
You can’t perform that action at this time.
0 commit comments