v1.5.0
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: