-
Notifications
You must be signed in to change notification settings - Fork 36
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
Is it a bug? #7
Comments
Hi it is not a bug. If I remember correctly, negtive_samples means the index of the target item. |
Can you please check again? I have printed the value of negtive_samples for every iteration and it's always 99 (same as the negtive_samples argument). |
the last index 99 is always the target item, |
I see. I didn't notice it was the top-k retrieval within the batch. Sorry
for the bothering~
…On Thu, May 27, 2021 at 5:54 PM fage ***@***.***> wrote:
the last index 99 is always the target item,
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJXZTTP6EL5JW24OERAG4TTPYJG3ANCNFSM45TYZAXA>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Prof Yuan~
In the evaluation part of PeterRec_cau_serial.py line 243, the rank of the retrieved items is given by
rank = predictmap.get(negtive_samples)
where negtive_samples is 'the number of negative examples for each positive one'.
Is it a bug? How can negtive_samples be the key of a retrieved item?
The text was updated successfully, but these errors were encountered: