【发布时间】:2017-01-10 13:43:59
【问题描述】:
我想将我的价值观绘制成这样:
我的列表中有 4x12 个值。
values = [[2.78, 2.78, 2.78, 2.79, 2.79, 2.79, 2.8, 2.8, 2.81, 2.82, 2.82, 2.77],
[2.98, 2.98, 2.98, 2.99, 2.99, 2.99, 3.0, 3.0, 3.01, 3.02, 3.03, 2.98],
[3.01, 3.01, 3.01, 3.01, 3.01, 3.02, 3.02, 3.03, 3.04, 3.04, 3.05, 3.01],
[2.98, 2.98, 2.98, 2.99, 2.99, 2.99, 3.0, 3.01, 3.01, 3.02, 3.03, 2.99]]
我尝试遵循混淆矩阵方法,但它似乎仅限于相等的数组形状Confusion Matrix with number of classified/misclassified instances on it (Python/Matplotlib)
有什么建议吗?
【问题讨论】:
-
已答复!我忘了从 numpy 导入 * 从 pylab 导入 *
标签: python-2.7 numpy matplotlib confusion-matrix