models icon indicating copy to clipboard operation
models copied to clipboard

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

Open PaulSteffen-betclic opened this issue 2 years ago • 1 comments

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

PaulSteffen-betclic avatar Nov 21 '23 12:11 PaulSteffen-betclic

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.

sararb avatar Jul 04 '24 22:07 sararb