一般二分类中直接用 查准率(precision)、查全率(recall)、F1 score 、AUC就可以做评价指标
在多分类中:
1、西瓜书中介绍了 宏查准率(macro-P)、宏查全率(macro-R)、宏F1(macro-F1) 、以及 微查准率(micro-P)、微查全率(micro-R)、微F1(micro-F1)。可自行查阅
在tensorflow中,可以使用以下任意函数(两者等价)获得混淆矩阵,从而获得上述分类的评价指标
tf.confusion_matrix
tf.math.confusion_matrix
函数介绍具体参见:https://tensorflow.google.cn/api_docs/python/tf/math/confusion_matrix