相关疑难解决方法(0)

如何绘制scikit学习分类报告?

是否可以使用matplotlib scikit-learn分类报告进行绘图?我们假设我打印分类报告如下:

print '\n*Classification Report:\n', classification_report(y_test, predictions)
    confusion_matrix_graph = confusion_matrix(y_test, predictions)
Run Code Online (Sandbox Code Playgroud)

我得到:

Clasification Report:
             precision    recall  f1-score   support

          1       0.62      1.00      0.76        66
          2       0.93      0.93      0.93        40
          3       0.59      0.97      0.73        67
          4       0.47      0.92      0.62       272
          5       1.00      0.16      0.28       413

avg / total       0.77      0.57      0.49       858
Run Code Online (Sandbox Code Playgroud)

我如何"绘制"avobe图表?

python numpy matplotlib scikit-learn

25
推荐指数
6
解决办法
2万
查看次数

标签 统计

matplotlib ×1

numpy ×1

python ×1

scikit-learn ×1