mulan.evaluation.loss
Interface MultiLabelLossFunction

All Known Subinterfaces:
BipartitionLossFunction, RankingLossFunction
All Known Implementing Classes:
BipartitionLossFunctionBase, ErrorSetSize, HammingLoss, HierarchicalLoss, IsError, OneError, OneMinusAveragePrecision, RankingLoss, RankingLossFunctionBase

public interface MultiLabelLossFunction

Interfance for loss functions

Version:
2010.11.10
Author:
Grigorios Tsoumakas

Method Summary
 double computeLoss(MultiLabelOutput prediction, boolean[] groundTruth)
          Computes the loss function
 String getName()
          Returns the name of the loss function
 

Method Detail

getName

String getName()
Returns the name of the loss function

Returns:
the name of the loss function

computeLoss

double computeLoss(MultiLabelOutput prediction,
                   boolean[] groundTruth)
Computes the loss function

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