Skip to content

v1.5.0

Compare
Choose a tag to compare
@KevinMusgrave KevinMusgrave released this 29 Jun 21:58
· 336 commits to master since this release

Features

For some loss functions, labels are now optional if indices_tuple is provided:

loss = loss_func(embeddings, indices_tuple=pairs)

The losses for which you can do this are:

  • CircleLoss
  • ContrastiveLoss
  • IntraPairVarianceLoss
  • GeneralizedLiftedStructureLoss
  • LiftedStructureLoss
  • MarginLoss
  • MultiSimilarityLoss
  • NTXentLoss
  • SignalToNoiseRatioContrastiveLoss
  • SupConLoss
  • TripletMarginLoss
  • TupletMarginLoss

This issue has come up several times:

#412
#490
#482
#473
#179
#263