关于recall和precision

关于recall 和 precision

x = b ± b 2 4 a c 2 a

+ C:一个很大item的集合。
+ π:集合中相关的item的集合(π<< 1)。
+ t:算法所识别出的item的集合。
+ h(t):t中确实相关的item的集合,通常这部分称作命中(相反的是丢失)\
+ 假设 ω 是集合 C 中随机去取出的一个元素

y = 1
if
ω
is relevant
y = 1 if ω is detected by the algorithm
y = 0 otherwise
y = 0 otherwise
* R e c a l l = h ( t ) π R e c a l l = P r ( y = 1 | y = 1 )
* P r e c i s i o n = h ( t ) t P r e c i s i o n = P r ( y = 1 | y = 1 )
* P r e c i s i o n = P r ( y = 1 | y = 1 ) P r ( y = 1 ) P r ( y = 1 ) = R e c a l l π t
* Average Precision d e f i n e 1 1 0 0 1 p ( r ) d r = 0 1 p ( r ) d r

可以使用下图这个结果来理解一下AP 然后对于不用的样本都会有一个ap

简单地说precision就是看查的准不准而recall就是看查的全不全。在正负样本不均匀的时候,需要同时考虑到这两个指标。`

猜你喜欢

转载自blog.csdn.net/weixin_40373708/article/details/80664211