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

Is it a bug? #7

Open
vcpudding opened this issue May 27, 2021 · 4 comments
Open

Is it a bug? #7

vcpudding opened this issue May 27, 2021 · 4 comments

Comments

@vcpudding
Copy link

vcpudding commented May 27, 2021

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?

@fajieyuan
Copy link
Owner

Hi it is not a bug. If I remember correctly, negtive_samples means the index of the target item.

@vcpudding
Copy link
Author

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).

@fajieyuan
Copy link
Owner

the last index 99 is always the target item,

@vcpudding
Copy link
Author

vcpudding commented May 27, 2021 via email

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

2 participants