precision.pkl" recall = cPickle.load(open(recall_pkl)) precision = cPickle.load(open(precison_pkl)) clr = ['r', 'g', 'b', 'k'] classitem = [u'瓦楞纸盒',u'文件袋', u'塑料包裹',u'编织袋'] model = ['Real','Real+Synthetic Adapted'] for j in range(1, len(recall)/2+1...
2.Precision-Recall Curve(参考:https://blog.csdn.net/HackerTom/article/details/89425729) importmatplotlib.pyplotaspltdefpr_curve(qB,rB,qL,rL,ep,task,topK=-1):n_query=qB.shape[0]iftopK==-1ortopK>rB.shape[0]:# top-K 之 K 的上限topK=rB.shape[0]# Gnd = (np.dot(qL, rL.transpose(...