テスト・セット・パイソン予測レポートの精度、リコール、F1スコア、サポート

from sklearn.metrics import confusion_matrix
from sklearn.metrics import classification_report

confusion_matrix(y_test, y_predict)

print(classification_report(y_test, y_predict))


           precision	recall	  f1-score	support
   A         0.9	  0.9	     0.9           23 
   B         0.84	  0.77       0.81	   51

microavg    xx	          xx	      xx	   74
macroavg    xx	          xx	      xx	   74
weightedavg xx	          xx	      xx	   74

 

公開された35元の記事 ウォン称賛26 ビュー80000 +

おすすめ

転載: blog.csdn.net/weixin_42342968/article/details/83617607