Skip to content

Conversation

PhilipMay
Copy link
Contributor

@PhilipMay PhilipMay commented Nov 5, 2022

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 PhilipMay force-pushed the add_MultipleNegativesRankingLoss_training branch from 7ca1200 to 87740d5 Compare November 5, 2022 08:26
@PhilipMay PhilipMay changed the title [WIP ] add option to use MultipleNegativesRankingLoss [WIP] add option to use MultipleNegativesRankingLoss Nov 5, 2022
@PhilipMay PhilipMay force-pushed the add_MultipleNegativesRankingLoss_training branch from 1655b36 to 2f3fdb6 Compare November 23, 2022 18:10
@tomaarsen tomaarsen added the enhancement New feature or request label Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants