contextFold.scoring
Interface LossCalculator

All Known Implementing Classes:
FMeasureLossCalculator, HammingLossCalculator

public interface LossCalculator


Method Summary
 float loss(int[] guessFold, int[] goldFold)
          General distance measurements between two foldings.
 

Method Detail

loss

float loss(int[] guessFold,
           int[] goldFold)
General distance measurements between two foldings. Describes how "bad" would it be to predict the guessFold when the real folding is goldFold.

Parameters:
guessFold - a predicted folding
goldFold - known folding
Returns:
a (positive) distance between the foldings, where 0 means identity.