質問編集履歴
1
表示されたエラーメッセージを追記しました.
title
CHANGED
File without changes
|
body
CHANGED
@@ -184,4 +184,27 @@
|
|
184
184
|
5.0 3.0 5.1 1.8 3.0
|
185
185
|
```
|
186
186
|
|
187
|
+
(追記)
|
188
|
+
このコードを実行すると以下のようなエラーが出てしまいます. それでもなぜか分類精度の数値は表示されます. なぜでしょうか...?
|
189
|
+
```error
|
190
|
+
/usr/local/lib/python3.6/dist-packages/sklearn/linear_model/_logistic.py:940: ConvergenceWarning: lbfgs failed to converge (status=1):
|
191
|
+
STOP: TOTAL NO. of ITERATIONS REACHED LIMIT.
|
192
|
+
|
193
|
+
Increase the number of iterations (max_iter) or scale the data as shown in:
|
194
|
+
https://scikit-learn.org/stable/modules/preprocessing.html
|
195
|
+
Please also refer to the documentation for alternative solver options:
|
196
|
+
https://scikit-learn.org/stable/modules/linear_model.html#logistic-regression
|
197
|
+
extra_warning_msg=_LOGISTIC_SOLVER_CONVERGENCE_MSG)
|
198
|
+
/usr/local/lib/python3.6/dist-packages/sklearn/linear_model/_logistic.py:940: ConvergenceWarning: lbfgs failed to converge (status=1):
|
199
|
+
STOP: TOTAL NO. of ITERATIONS REACHED LIMIT.
|
200
|
+
|
201
|
+
Increase the number of iterations (max_iter) or scale the data as shown in:
|
202
|
+
https://scikit-learn.org/stable/modules/preprocessing.html
|
203
|
+
Please also refer to the documentation for alternative solver options:
|
204
|
+
https://scikit-learn.org/stable/modules/linear_model.html#logistic-regression
|
205
|
+
extra_warning_msg=_LOGISTIC_SOLVER_CONVERGENCE_MSG)
|
206
|
+
/usr/local/lib/python3.6/dist-packages/sklearn/linear_model/_logistic.py:940: ConvergenceWarning: lbfgs failed to converge (status=1):
|
207
|
+
STOP: TOTAL NO. of ITERATIONS REACHED LIMIT.
|
208
|
+
```
|
209
|
+
|
187
210
|
よろしくお願いします.
|