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

[QST] How to use negative sampling with ranking models ? #1229

Open
PaulSteffen-betclic opened this issue Nov 21, 2023 · 1 comment
Open

Comments

@PaulSteffen-betclic
Copy link

❓ Questions & Help

Details

I have a dataset with only positive implicit feedbacks and I would like to train a ranking model on these data.
How to use negative sampling with ranking models ?
Thanks.

@sararb
Copy link
Contributor

sararb commented Jul 4, 2024

We have a class, called InBatchNegatives, where the positive samples within a batch are used as negative samples. You can check this page for the unit tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants