- All Implemented Interfaces:
- DyadRankingLossFunction
public class KendallsTauDyadRankingLoss
extends java.lang.Object
implements DyadRankingLossFunction
Computes the rank correlation measure known as Kendall's tau coefficient, i.e.
(C - D) / (K * (K-1) /2), where C and D are the number of concordant (put in the right order)
and discordant (put in the wrong order) pairs of dyads and K is the length of the dyad ranking.
Lies between -1 (reversed order) and +1 (same order).
Assumes the dyads in the ranking to be pairwise distinct.