roc曲线 数据集
The ROC curve is simply a graphical plot of the relationship between the False Positive Rate (FPR) and the True Positive Rate (TPR) when the discrimination threshold of a classifier is varied.
ROC曲线只是当分类器的判别阈值变化时,假阳性率(FPR)和真阳性率(TPR)之间关系的图形图。
FPR is the probability of classifying a data point as positive when it is actually negative. This is essentially the probability that your classifier gives you a false alarm, and it is defined as follows:
FPR是当数据点实际上是负数时将其分类为正数的可能性。 从本质上讲,这是分类器给您带来错误警报的概率,其定义如下:
where N is the total number of negatives, which is equal to the sum of false positives (FP) and true negatives (TN).
其中N是阴性总数,等于假阳性(FP)和真阴性(TN)的总和。
Similarly, TPR is the probability of classifying a point correctly as positive.
同样,TPR是将点正确分类为正的概率。