-
Notifications
You must be signed in to change notification settings - Fork 404
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
About the code on find_k_largest #233
Comments
It doesn't. I just checked the code and printed the list. It works as expected. Why do you think it will append two times? |
The |
Line 146 in 2a13e3d
r=K-1 which means that for the first K items in candidates, the following codes conditioned on L146 would not be excuted. So, there would not be repeated items in the recommendation list. However, it would be better if it iterates in the range [K:]. Thanks. I will consider to modify it. |
QRec/util/qmath.py
Line 138 in 2a13e3d
the n_candidates is the top K index and values. the candidates[0:K] will append two times in the for, so I think
for iid,score in enumerate(candidates)
, the iid and score should skip the 0~K-1?The text was updated successfully, but these errors were encountered: