U
- type of the usersI
- type of the itemspublic class NDCG<U,I> extends AbstractRecommendationMetric<U,I>
Modifier and Type | Class and Description |
---|---|
static class |
NDCG.NDCGRelevanceModel<U,I>
Relevance model for nDCG, in which the gains of all relevant documents need to be known for the normalization of the metric.
|
Constructor and Description |
---|
NDCG(int cutoff,
NDCG.NDCGRelevanceModel<U,I> relModel)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
evaluate(Recommendation<U,I> recommendation)
Returns a score for the recommendation list.
|
public NDCG(int cutoff, NDCG.NDCGRelevanceModel<U,I> relModel)
cutoff
- maximum length of evaluated recommendation listsrelModel
- relevance modelpublic double evaluate(Recommendation<U,I> recommendation)
recommendation
- recommendation listCopyright © 2016. All rights reserved.