Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

一个非常古怪的 bug:例如 [1] in [1,2] 居然返回 true #67

Open
guixianjin opened this issue Jan 5, 2022 · 0 comments
Open

Comments

@guixianjin
Copy link

guixianjin commented Jan 5, 2022

请看这一行,

# if test_true_label[uid] in pred:

根据前面代码,test_true_label[uid] 应该是一个含有单值的 list(例如 [1]), 而 pred 是一个 list 列表(例如 [1,2,3,4]),但结果居然是 in 操作在一定情况下返回 true, 造成 hit 累计 1,从而最终 hit rate 不为 0。

非常古怪

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant