Skip to content

NTXent loss when more than 2 positive samples? #698

Answered by KevinMusgrave
jeanfelixM asked this question in Q&A
Discussion options

You must be logged in to vote

It'll be the average of:

  • loss for (0,1), with 3,4,5 as negatives
  • loss for (0,2), with 3,4,5 as negatives
  • loss for (1,0), with 3,4,5 as negatives
  • loss for (1,2), with 3,4,5 as negatives
  • loss for (2,0), with 3,4,5 as negatives
  • loss for (2,1), with 3,4,5 as negatives
  • loss for (3,4), with 0,1,2 as negatives
  • loss for (3,5), with 0,1,2 as negatives
  • loss for (4,3), with 0,1,2 as negatives
  • loss for (4,5), with 0,1,2 as negatives
  • loss for (5,3), with 0,1,2 as negatives
  • loss for (5,4), with 0,1,2 as negatives

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jeanfelixM
Comment options

Answer selected by jeanfelixM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants