public class NDCGLoss extends java.lang.Object implements DyadRankingLossFunction
| Constructor and Description |
|---|
NDCGLoss(int l) |
| Modifier and Type | Method and Description |
|---|---|
int |
getL() |
double |
loss(IDyadRankingInstance actual,
IDyadRankingInstance predicted)
Computes the loss between the actual dyad ordering and predicted dyad
ordering, represented by dyad ranking instances.
|
void |
setL(int l) |
public NDCGLoss(int l)
l - The position up to which to compute the cumulative gain (zero-indexed, exclusive).public double loss(IDyadRankingInstance actual, IDyadRankingInstance predicted)
DyadRankingLossFunctionloss in interface DyadRankingLossFunctionactual - the correct orderingpredicted - the predicted orderingpublic int getL()
public void setL(int l)