U - type of the usersI - type of the itemspublic abstract class ItemNoveltyMetric<U,I> extends AbstractRecommendationMetric<U,I>
| Modifier and Type | Field and Description |
|---|---|
protected ItemNovelty<U,I> |
novelty
item novelty model
|
| Constructor and Description |
|---|
ItemNoveltyMetric(int cutoff,
ItemNovelty<U,I> novelty,
RelevanceModel<U,I> relevanceModel,
RankingDiscountModel disc)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
evaluate(Recommendation<U,I> recommendation)
Returns a score for the recommendation list.
|
protected final ItemNovelty<U,I> novelty
public ItemNoveltyMetric(int cutoff,
ItemNovelty<U,I> novelty,
RelevanceModel<U,I> relevanceModel,
RankingDiscountModel disc)
cutoff - maximum size of the recommendation list that is evaluatednovelty - novelty modelrelevanceModel - relevance modeldisc - ranking discount modelpublic double evaluate(Recommendation<U,I> recommendation)
recommendation - recommendation listCopyright © 2016. All rights reserved.