Class HitsNormMetric

  • All Implemented Interfaces:
    EvalMetric

    public class HitsNormMetric
    extends HitsMetric
    Normalized version of HitsMetric.
    Author:
    Alexander Schultheis
    • Constructor Detail

      • HitsNormMetric

        public HitsNormMetric()
      • HitsNormMetric

        public HitsNormMetric​(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.
        Overrides:
        computeEvalKMetric in class HitsMetric
        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