2019.12.32023-12-12 20:35:40 2019.12.3 import numpy as np from sklearn import metrics y = np.array([1, 1, 2, 2]) scores = np.array([0.1, 0.4, 0.35, 0.8]) fpr, tpr, thresholds = metrics.roc_curve(y, scores, pos_label=2) 上一篇:深浅下一篇:【python】实验1项目3 文件的读写,编码和解码