質問編集履歴

1

表示されたエラーメッセージを追記しました.

2020/06/14 14:41

投稿

00_x9925
00_x9925

スコア12

test CHANGED
File without changes
test CHANGED
@@ -370,4 +370,50 @@
370
370
 
371
371
 
372
372
 
373
+ (追記)
374
+
375
+ このコードを実行すると以下のようなエラーが出てしまいます. それでもなぜか分類精度の数値は表示されます. なぜでしょうか...?
376
+
377
+ ```error
378
+
379
+ /usr/local/lib/python3.6/dist-packages/sklearn/linear_model/_logistic.py:940: ConvergenceWarning: lbfgs failed to converge (status=1):
380
+
381
+ STOP: TOTAL NO. of ITERATIONS REACHED LIMIT.
382
+
383
+
384
+
385
+ Increase the number of iterations (max_iter) or scale the data as shown in:
386
+
387
+ https://scikit-learn.org/stable/modules/preprocessing.html
388
+
389
+ Please also refer to the documentation for alternative solver options:
390
+
391
+ https://scikit-learn.org/stable/modules/linear_model.html#logistic-regression
392
+
393
+ extra_warning_msg=_LOGISTIC_SOLVER_CONVERGENCE_MSG)
394
+
395
+ /usr/local/lib/python3.6/dist-packages/sklearn/linear_model/_logistic.py:940: ConvergenceWarning: lbfgs failed to converge (status=1):
396
+
397
+ STOP: TOTAL NO. of ITERATIONS REACHED LIMIT.
398
+
399
+
400
+
401
+ Increase the number of iterations (max_iter) or scale the data as shown in:
402
+
403
+ https://scikit-learn.org/stable/modules/preprocessing.html
404
+
405
+ Please also refer to the documentation for alternative solver options:
406
+
407
+ https://scikit-learn.org/stable/modules/linear_model.html#logistic-regression
408
+
409
+ extra_warning_msg=_LOGISTIC_SOLVER_CONVERGENCE_MSG)
410
+
411
+ /usr/local/lib/python3.6/dist-packages/sklearn/linear_model/_logistic.py:940: ConvergenceWarning: lbfgs failed to converge (status=1):
412
+
413
+ STOP: TOTAL NO. of ITERATIONS REACHED LIMIT.
414
+
415
+ ```
416
+
417
+
418
+
373
419
  よろしくお願いします.