confusion_matrix(Python版本)
发布时间
阅读量:
阅读量
import seaborn as sns
sns.set(font_scale=1.4) # y label 横向
import matplotlib.pyplot as plt
'''
https://zhuanlan.zhihu.com/p/35494575
fmt ='.0%'#显示百分比
fmt ='f' 显示完整数字 = fmt ='g'
fmt ='.3'显示小数的位数 = fmt ='.3f' = fmt ='.3g'
'''
confusion_matrix = pd.DataFrame(data = np.array([[99.9, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
[0.0, 99.9, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
[0.0, 0.0, 99.9, 0.0, 0.0, 0.0, 0.0, 0.0],
[0.0, 0.0, 0.0, 99.9, 0.0, 0.0,
全部评论 (0)
还没有任何评论哟~
