有没有一种在Tensorflow对象检测API中可视化精确召回曲线的方法?我知道mAP代表曲线下面积的绝对值,但我认为实际曲线对我的应用来说更有代表性?我已经在utils/度量标准1中找到了一些精确值和回忆值,但我不知道它们确切地表示了什么,或者更好地说,如何从它们生成Prec/Recall曲线。有人能帮我吗,怎么做?
发布于 2017-09-18 11:34:51
compute_precision_recall输出两个长度相同的numpy数组,即。精确和召回。您可以轻松地用matplotlib绘制这些值:
import matplotlib.pyplot as plt
...
precision, recall = compute_precision_recall(scores, labels, num_gt)
plt.figure()
plt.step(recall, precision, where='post' )
plt.xlabel('Recall')
plt.ylabel('Precision')
plt.xlim((0, 1))
plt.ylim((0, 1))
plt.show()
plt.close()https://stackoverflow.com/questions/46274514
复制相似问题