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: tf.contrib.losses.metric_learning

View source on GitHub

Ops for building neural network losses.

See Contrib Losses.

Functions

cluster_loss(...): Computes the clustering loss.

contrastive_loss(...): Computes the contrastive loss.

lifted_struct_loss(...): Computes the lifted structured loss.

npairs_loss(...): Computes the npairs loss.

npairs_loss_multilabel(...): Computes the npairs loss with multilabel data.

triplet_semihard_loss(...): Computes the triplet loss with semi-hard negative mining.