Contrastive Loss

A loss function where the fundamental idea is to minimise the distance (or difference) between similar pairs while maximising between dissimilar pairs.