-
confusion_matrix:包含带有函数的 cf_matrix.py 文件,用于对混淆矩阵进行漂亮的可视化下载
资源介绍
cf_matrix.py
该文件包含一个名为 make_confusion_matrix 的函数,该函数可用于创建作为二维 numpy 数组传入的混淆矩阵的有用可视化。
文档字符串
This function will make a pretty plot of an sklearn Confusion Matrix cm using a Seaborn heatmap visualization.
Arguments
---------
cf: confusion matrix to be passed in
group_names: List of strings that represent the labels row by row to be shown in each square.
categories: List of strings c