Class ErrorSpanMetric

  • All Implemented Interfaces:
    EvalMetric

    public class ErrorSpanMetric
    extends Object
    implements EvalMetric
    Author:
    Maximilian Hoffmann
    • Constructor Detail

      • ErrorSpanMetric

        public ErrorSpanMetric()
    • Method Detail

      • computeEvalMetric

        public double computeEvalMetric​(SimpleSimilarityResult groundTruthRankingResult,
                                        SimpleSimilarityResult predictedRankingResult)
        Computes error span for two retrieval results. Normally, this method is used to compare the ground-truth values with the values to test.
        Specified by:
        computeEvalMetric in interface EvalMetric
        Parameters:
        groundTruthRankingResult - ground-truth results
        predictedRankingResult - results to test
        Returns:
        error span
      • getMetricName

        public String getMetricName()
        Description copied from interface: EvalMetric
        Returns a name for the metric to be identified in any string representations.
        Specified by:
        getMetricName in interface EvalMetric
        Returns:
        the name of the metric