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
 
Methods inherited from interface mulan.evaluation.loss.MultiLabelLossFunction
computeLoss, getName
 

Method Detail

computeLoss

double computeLoss(int[] ranking,
                   boolean[] groundTruth)
Computes the ranking loss function

Parameters:
ranking - the ranking of the learner for an example
groundTruth - the ground truth of the example
Returns:
the value of the loss function