Merge pull request #343 from CoderOverflow/patch-2

2.16.13 如何计算TPR,FPR 内容修订
This commit is contained in:
scutan90 2019-04-13 14:03:38 +08:00 committed by GitHub
commit 7fd8000792
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1172,8 +1172,8 @@ y_true = [0, 0, 1, 1]scores = [0.1, 0.4, 0.35, 0.8]
| 样本 | 预测属于P的概率(score) | 真实类别 | | 样本 | 预测属于P的概率(score) | 真实类别 |
| ---- | ---------------------- | -------- | | ---- | ---------------------- | -------- |
| y[0] | 0.1 | N | | y[0] | 0.1 | N |
| y[1] | 0.35 | P | | y[1] | 0.4 | N |
| y[2] | 0.4 | N | | y[2] | 0.35 | P |
| y[3] | 0.8 | P | | y[3] | 0.8 | P |
3、将截断点依次取为score值计算TPR和FPR。 3、将截断点依次取为score值计算TPR和FPR。