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

[WIP] add option to use MultipleNegativesRankingLoss #152

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

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