public class MMR.UserMMR extends LambdaReranker.LambdaUserReranker
MMR.novMap, novStats, relStatsmaxLength, recommendation| Constructor and Description |
|---|
UserMMR(Recommendation<U,I> recommendation,
int maxLength)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected double |
nov(Tuple2od<I> itemValue)
Returns the novelty score of an item.
|
protected void |
update(Tuple2od<I> bestItemValue)
Updates the value of the objective function after a selection.
|
norm, selectItem, valuererankPermutationpublic UserMMR(Recommendation<U,I> recommendation, int maxLength)
recommendation - input recommendation to be re-rankedmaxLength - maximum length of the re-ranked recommendationprotected double nov(Tuple2od<I> itemValue)
LambdaReranker.LambdaUserRerankernov in class LambdaReranker.LambdaUserRerankeritemValue - item-relevance pairprotected void update(Tuple2od<I> bestItemValue)
GreedyReranker.GreedyUserRerankerupdate in class GreedyReranker.GreedyUserReranker<U,I>bestItemValue - item-score pair that has been selected to
be added to the re-rankingCopyright © 2016. All rights reserved.