= 2, FP = 2, TN = 0,FN = 0
横坐标FPR = FP / (FP + TN) = 1
纵坐标TPR = TP / (TP + FN) = 1
(2)threshold = 0.35...时,y_pred= [0, 1, 1, 1]
TP = 2, FP = 1, TN = 1, FN = 0
FPR = FP / (FP + TN) = 0.5
TPR = TP / (TP + FN)...= 1, FP = 0, TN = 10, FN = 9
FPR = FP / (FP + TN) = 0
TPR = TP / (TP + FN) = 0.1
(2) score = 0.8时...2, FP = 1, TN = 9, FN = 8
FPR = FP / (FP + TN) = 0.1
TPR = TP / (TP + FN) = 0.2
……
(19)score = 0.3时,...FP = 10, TN = 0, FN = 0
FPR = FP / (FP + TN) = 1
TPR = TP / (TP + FN) = 1
当我们将threshold设置为1和0时,分别可以得到