roc曲线:
python 画roc曲线_jacke121的专栏-CSDN博客
import _pickle as cPickle
import matplotlib.pyplot as plt
xxx = np.array([1, 0.9, 0.9, 0.9,0.5])
yyy = np.array([0.1, 0.4, 0.5, 0.8, 0.99])
plt.figure()
plt.xlabel('recall')
plt.ylabel('precision')
plt.title('PR cruve')
plt.plot(xxx, yyy)
plt.show()