public class DyadRankingMLLossFunctionWrapper extends java.lang.Object implements DyadRankingLossFunction
| Constructor and Description |
|---|
DyadRankingMLLossFunctionWrapper(ADecomposableDoubleMeasure<double[]> measure)
Constructs a new loss function wrapper that uses the given measure to compute
the loss between a correct and predicted dyad ranking.
|
| 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 DyadRankingMLLossFunctionWrapper(ADecomposableDoubleMeasure<double[]> measure)
measure - the measure to usepublic double loss(IDyadRankingInstance actual, IDyadRankingInstance predicted)
DyadRankingLossFunctionloss in interface DyadRankingLossFunctionactual - the correct orderingpredicted - the predicted ordering