setfit icon indicating copy to clipboard operation
setfit copied to clipboard

[WIP] add option to use `MultipleNegativesRankingLoss`

Open PhilipMay opened this issue 2 years ago • 0 comments

This is an experiment - work still in progress

The idea is: if we have more (or equal) classes than batch size we are able to create batches of sentence pairs where each class is represented not more than once. If that is the case we can use MultipleNegativesRankingLoss.

related to #144

Todo

  • [ ] add tests
  • [ ] add docstrings
  • [ ] add doc to README.md

PhilipMay avatar Nov 05 '22 08:11 PhilipMay