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

999 distractor snippets #4

Closed
ncshrikanth opened this issue Jul 20, 2020 · 4 comments
Closed

999 distractor snippets #4

ncshrikanth opened this issue Jul 20, 2020 · 4 comments

Comments

@ncshrikanth
Copy link

Thank You for CodeBERT! A quick question, wherein CodeSearchNet did you find a fixed set
of 999 distractor codes say If I wish to evaluate (MRR) for a model built (Code Search space)?

@fengzhangyin
Copy link
Collaborator

Yes. We follow the official evaluation metric to calculate the Mean Reciprocal Rank (MRR) for each pair of test data over a fixed set of 999 distractor codes.

@ncshrikanth
Copy link
Author

Thank You for your reply! Perhaps I was not clear but I was asking for the source ie., "Where is the fixed set of 999 distractor codes"? Could you share the link or dataset?

@fengzhangyin
Copy link
Collaborator

You can use the script we provide to get the test data.
The script link is https://github.com/microsoft/CodeBERT/blob/master/codesearch/process_data.py.

@ncshrikanth
Copy link
Author

Thank You for the quick reply, will try this!

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