Class QualityStromerMetric

  • All Implemented Interfaces:
    EvalMetric

    public class QualityStromerMetric
    extends KEvalMetric
    Implementation of the quality metric according to Bergmann and Stromer.
    Author:
    Maximilian Hoffmann, Alexander Schultheis
    • Constructor Detail

      • QualityStromerMetric

        public QualityStromerMetric()
      • QualityStromerMetric

        public QualityStromerMetric​(int k)
    • Method Detail

      • computeEvalKMetric

        public double computeEvalKMetric​(SimpleSimilarityResult groundTruthRankingResult,
                                         SimpleSimilarityResult predictedRankingResult,
                                         Integer k)
        Description copied from class: KEvalMetric
        Computes a ranking metric for the top-k cases of the ranking results.
        Specified by:
        computeEvalKMetric in class KEvalMetric
        Parameters:
        groundTruthRankingResult - the ground-truth ranking
        predictedRankingResult - the predicted ranking results to analyze
        k - the number of top cases to look at
        Returns:
        a score for the ranking according to this metric