Class KendallsTauOfTopK
- java.lang.Object
-
- ai.libs.jaicore.ml.dyadranking.loss.KendallsTauOfTopK
-
- All Implemented Interfaces:
DyadRankingLossFunction
public class KendallsTauOfTopK extends java.lang.Object implements DyadRankingLossFunction
Calculates the kendalls-tau loss only for the top k dyads. https://researcher.watson.ibm.com/researcher/files/us-fagin/topk.pdf
-
-
Constructor Summary
Constructors Constructor Description KendallsTauOfTopK(int k, double p)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubleloss(IDyadRankingInstance actual, IDyadRankingInstance predicted)Computes the loss between the actual dyad ordering and predicted dyad ordering, represented by dyad ranking instances.
-
-
-
Method Detail
-
loss
public double loss(IDyadRankingInstance actual, IDyadRankingInstance predicted)
Description copied from interface:DyadRankingLossFunctionComputes the loss between the actual dyad ordering and predicted dyad ordering, represented by dyad ranking instances.- Specified by:
lossin interfaceDyadRankingLossFunction- Parameters:
actual- the correct orderingpredicted- the predicted ordering- Returns:
- the loss between the predicted and correct ordering, depending on the implementation
-
-