Class NDCGScorer


  • public class NDCGScorer
    extends DCGScorer
    Author:
    vdang
    • Field Detail

      • idealGains

        protected java.util.HashMap<java.lang.String,​java.lang.Double> idealGains
    • Constructor Detail

      • NDCGScorer

        public NDCGScorer()
      • NDCGScorer

        public NDCGScorer​(int k)
    • Method Detail

      • score

        public double score​(RankList rl)
        Compute NDCG 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.
        Overrides:
        score in class DCGScorer
      • name

        public java.lang.String name()
        Overrides:
        name in class DCGScorer