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

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

    • MSEMetric

      public MSEMetric()
  • Method Details

    • computeMeanSquaredError

      public static double computeMeanSquaredError(SimpleSimilarityResult groundTruthResult, SimpleSimilarityResult predictedResult)
      Computes the mean-squared error of the ground-truth and the predicted results.
      Parameters:
      groundTruthResult - the ground-truth results
      predictedResult - the predicted results
      Returns:
      the mean of the element-wise squared errors
    • computeEvalMetric

      public double computeEvalMetric(SimpleSimilarityResult groundTruthResult, SimpleSimilarityResult predictedResult)
      Description copied from interface: EvalMetric
      Computes a ranking metric for the complete ranking.
      Specified by:
      computeEvalMetric in interface EvalMetric
      Parameters:
      groundTruthResult - the ground-truth ranking
      predictedResult - 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