【发布时间】:2020-07-31 11:14:36
【问题描述】:
我正在使用以下一段 python 代码来生成一个归一化的混淆矩阵
import scikitplot as skplt
skplt.metrics.plot_confusion_matrix(y_test, y_pred, normalize=True)
这给了我here 所示的情节。但是,我想在 x 轴上旋转纹理(预测值,即中性、快乐、悲伤)。我希望旋转 x 轴上的预测值而不是水平线(如here 所示)并保持真实标签原样(水平)。我们如何在 Python 中做到这一点?
【问题讨论】:
标签: python scikit-learn confusion-matrix scikit-plot