交叉表
pd.crosstab(index=y_test, columns=y_, rownames=['True'], colnames=['Predict'],
margins=True)
混淆矩阵
from sklearn.metrics import confusion_matrix
confusion_matrix(y_test,y_)
# 真实值
y_test.value_counts()
# 预测
Series(y_).value_counts()
精确率、召回率、f1-score调和平均值