public class TopKOfPredicted extends java.lang.Object implements DyadRankingLossFunction
| Constructor and Description |
|---|
TopKOfPredicted(int k)
Specifies the amount of top rankings to consider.
|
| 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 TopKOfPredicted(int k)
k - public double loss(IDyadRankingInstance actual, IDyadRankingInstance predicted)
DyadRankingLossFunctionloss in interface DyadRankingLossFunctionactual - the correct orderingpredicted - the predicted ordering