public class KendallsTauOfTopK extends java.lang.Object implements DyadRankingLossFunction
| Constructor and Description |
|---|
KendallsTauOfTopK(int k,
double p) |
| Modifier and Type | Method and Description |
|---|---|
double |
loss(IDyadRankingInstance actual,
IDyadRankingInstance predicted)
Computes the loss between the actual dyad ordering and predicted dyad
ordering, represented by dyad ranking instances.
|
public double loss(IDyadRankingInstance actual, IDyadRankingInstance predicted)
DyadRankingLossFunctionloss in interface DyadRankingLossFunctionactual - the correct orderingpredicted - the predicted ordering