setfit
setfit copied to clipboard
[WIP] add option to use `MultipleNegativesRankingLoss`
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