Precision / Recall 及 F1-score

 

True positive(tp): algorithm predicts 1 and it actually is 1

True negtive(tn): algorithm predicts 0 and it actually is 0

False positive(fp):  algorithm predicts 1 and it actually is 0

False negative(fn): algorithm predicts 0 and it actually is 1

 

Precision: 在所有预测为1结果里面有多少是真实为1

$precision = \frac{True\ positives}{\#predicted\ positives} = \frac{tp}{tp + fp}$

 

Recall: 所有真实为1的有多少能够被成功预测为1

$recall = \frac{True\ positives}{\#actual\ positives} = \frac{tp}{tp + fn}$

 

F1-score: 偏斜集衡量指标

$F_{1}\textrm{-}score = \frac{2PR}{P+R}$

 

转载于:https://www.cnblogs.com/freyr/p/4607997.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值