U
- type of the usersI
- type of the itemspublic class ItemNoveltyReranker<U,I> extends PermutationReranker<U,I>
ItemNovelty
.
S. Vargas. Novelty and diversity evaluation and enhancement in Recommender
Systems. PhD Thesis.Constructor and Description |
---|
ItemNoveltyReranker(double lambda,
ItemNovelty<U,I> novelty,
boolean norm)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected double |
norm(double score,
Stats stats)
Returns the normalized value of a relevance or novelty score.
|
int[] |
rerankPermutation(Recommendation<U,I> recommendation,
int maxLength)
Returns the permutation that is applied to the input recommendation
to generate the re-ranked recommendation.
|
protected double |
value(Tuple2od<I> iv,
Stats relStats,
it.unimi.dsi.fastutil.objects.Object2DoubleMap<I> novMap,
Stats novStats)
Re-scored value to determine the re-ranking.
|
getBasePerm, permuteRecommendation, rerankRecommendation
public ItemNoveltyReranker(double lambda, ItemNovelty<U,I> novelty, boolean norm)
lambda
- trade-off between relevance and noveltynovelty
- item novelty modelnorm
- normalize the relevance and novelty scorespublic int[] rerankPermutation(Recommendation<U,I> recommendation, int maxLength)
PermutationReranker
rerankPermutation
in class PermutationReranker<U,I>
recommendation
- input recommendationmaxLength
- maximum length of the permutationprotected double norm(double score, Stats stats)
score
- the relevance or novelty scorestats
- the relevance or novelty statisticsprotected double value(Tuple2od<I> iv, Stats relStats, it.unimi.dsi.fastutil.objects.Object2DoubleMap<I> novMap, Stats novStats)
iv
- item-relevance pair from the input recommendationrelStats
- statistics about the relevance scoresnovMap
- item-novelty pairsnovStats
- statistics about the novelty scoresCopyright © 2016. All rights reserved.