TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

Module: tfa.losses.npairs

View source on GitHub

Implements npairs loss.

Classes

class NpairsLoss: Computes the npairs loss between y_true and y_pred.

class NpairsMultilabelLoss: Computes the npairs loss between multilabel data y_true and y_pred.

Functions

npairs_loss(...): Computes the npairs loss between y_true and y_pred.

npairs_multilabel_loss(...): Computes the npairs loss between multilabel data y_true and y_pred.