import numpy as np
8 from sklearn import metrics
9 y = np.array( [1, 0, 0, 1, 1, 1, 0, 1, 1, 1])
10 pred = np.array([0.9, 0.9,0.8, 0.8, 0.7,0.7,0.7,0.6,0.5,0.4])
11 fpr, tpr, thresholds = metrics.roc_curve(y, pred, pos_label=1)
12 print(metrics.auc(fpr, tpr))
auc
最新推荐文章于 2024-11-13 23:24:50 发布

7228

被折叠的 条评论
为什么被折叠?



