Definition

The pairwise loss compares pairs of items and determines their relative order. Instead of predicting absolute errors for individual items.
where is a binary label if a pair is similar then , dissimilar then , is a distance metric between the pair, parametrized by .