mulan.evaluation.loss
Interface RankingLossFunction
- All Superinterfaces:
- MultiLabelLossFunction
- All Known Implementing Classes:
- ErrorSetSize, IsError, OneError, OneMinusAveragePrecision, RankingLoss, RankingLossFunctionBase
public interface RankingLossFunction
- extends MultiLabelLossFunction
Interfance for ranking loss functions
- Version:
- 2010.11.10
- Author:
- Grigorios Tsoumakas
Method Summary |
double |
computeLoss(int[] ranking,
boolean[] groundTruth)
Computes the ranking loss function |
computeLoss
double computeLoss(int[] ranking,
boolean[] groundTruth)
- Computes the ranking loss function
- Parameters:
ranking
- the ranking of the learner for an examplegroundTruth
- the ground truth of the example
- Returns:
- the value of the loss function