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

Negative sample selection #1

Open
cramraj8 opened this issue Dec 15, 2020 · 1 comment
Open

Negative sample selection #1

cramraj8 opened this issue Dec 15, 2020 · 1 comment

Comments

@cramraj8
Copy link

how did you choose the negative pairs to pair with the positive training samples in the pairwise softmax loss ?

@seanmacavaney
Copy link
Contributor

Hi @cramraj8

Negative samples were randomly selected from the top 1000 BM25 results-- including both samples that are not graded, and those with a relevance score of 0.

The exact procedure is here: https://github.com/Georgetown-IR-Lab/OpenNIR/blob/master/onir/datasets/pair_iter.py#L8 with pos_source=intersect and neg_source=run.

Does this answer your question?

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