Sklearn中的confusion_matrix排列方式与计算 2022-05-12 Machine learning 0 Comments Word Count: 54(words) Read Count: 1(minutes) 定义一个预测和真实值,打印出confusion matrix和精确度、召回率经过推导后,发现0代表Negative,1代表Postive,矩阵的横轴为预测,纵轴为真实值,如下图所示: