Class CorrectnessMetric

java.lang.Object
de.uni_trier.wi2.procake.utils.eval.metrics.full.CorrectnessMetric
All Implemented Interfaces:
EvalMetric

public class CorrectnessMetric extends Object implements EvalMetric
Author:
Maximilian Hoffmann
  • Constructor Details

    • CorrectnessMetric

      public CorrectnessMetric()
  • Method Details

    • computeEvalMetric

      public double computeEvalMetric(SimpleSimilarityResult groundTruthRankingResult, SimpleSimilarityResult predictedRankingResult)
      Description copied from interface: EvalMetric
      Computes a ranking metric for the complete ranking.
      Specified by:
      computeEvalMetric in interface EvalMetric
      Parameters:
      groundTruthRankingResult - the ground-truth ranking
      predictedRankingResult - the predicted ranking (to analyze)
      Returns:
      a double score
    • 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