Package ciir.umass.edu.metric
Class ERRScorer
- java.lang.Object
-
- ciir.umass.edu.metric.MetricScorer
-
- ciir.umass.edu.metric.ERRScorer
-
public class ERRScorer extends MetricScorer
- Author:
- Van Dang Expected Reciprocal Rank
-
-
Field Summary
Fields Modifier and Type Field Description static doubleMAX-
Fields inherited from class ciir.umass.edu.metric.MetricScorer
k
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ERRScorercopy()java.lang.Stringname()doublescore(RankList rl)Compute ERR at k.double[][]swapChange(RankList rl)-
Methods inherited from class ciir.umass.edu.metric.MetricScorer
getK, getRelevanceLabels, loadExternalRelevanceJudgment, score, setK
-
-
-
-
Method Detail
-
copy
public ERRScorer copy()
- Specified by:
copyin classMetricScorer
-
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:
scorein classMetricScorer
-
name
public java.lang.String name()
- Specified by:
namein classMetricScorer
-
swapChange
public double[][] swapChange(RankList rl)
- Specified by:
swapChangein classMetricScorer
-
-