EasyRec icon indicating copy to clipboard operation
EasyRec copied to clipboard

DSSM的输出score分数代表什么含义

Open paradiseHIT opened this issue 5 years ago • 1 comments

这个score有时候超过1,是什么问题

paradiseHIT avatar Oct 21 '21 06:10 paradiseHIT

这个score有时候超过1,是什么问题

所有模型的 score 都代表对 label 的逼近。

如果是拿模型输出的 user embedding 和 item embedding 做 inner product,分数超过1可能有两种原因:

  1. 如果 配置的simi_function 不是 COSINE,这模型输出的embedding 并没有做 l2 normalize,这时inner product,并不代表 cosine similarity,是有可能大于1的;
  2. 就是导出embedding时做了精度限制,比如只导出了6位有效数字,基于这样的embedding 做 inner product,可能会存在数值计算的精度误差,score值略微超过1是正常的。

yangxudong avatar Oct 21 '21 08:10 yangxudong