Class ERRScorer


  • public class ERRScorer
    extends MetricScorer
    Author:
    Van Dang Expected Reciprocal Rank
    • Field Detail

      • MAX

        public static double MAX
    • Constructor Detail

      • ERRScorer

        public ERRScorer()
      • ERRScorer

        public ERRScorer​(int k)
    • Method Detail

      • score

        public double score​(RankList rl)
        Compute ERR at k. NDCG(k) = DCG(k) / DCG_{perfect}(k). Note that the "perfect ranking" must be computed based on the whole list, not just top-k portion of the list.
        Specified by:
        score in class MetricScorer
      • name

        public java.lang.String name()
        Specified by:
        name in class MetricScorer