有人知道为什么这些白线使我的困惑矩阵四分之一吗?我更改了许多参数,但无法弄清楚。使它们消失的唯一一件事是,如果我根本不标记这些块,即“ 0”,“ 1”等,但这显然不是我想要的。任何帮助将不胜感激。
代码:
var temp;
temp = weekTimes.find(x => x.date === this.mon);
this.monTime = temp.hours;
temp = weekTimes.find(x => x.date === this.tue);
this.tueTime = temp.hours;
...
输出为:
答案 0 :(得分:2)
plt.figure(figsize=(10,5))
plt.grid(False)
plot_confusion_matrix(cnf_matrix, classes=class_names, normalize=False, title='Normalized confusion matrix')