protected class BinomialNonRedundancyReranker.BinomialNonRedundancyUserReranker extends LambdaReranker.LambdaUserReranker
BinomialNonRedundancyReranker
.novMap, novStats, relStats
maxLength, recommendation
Constructor and Description |
---|
BinomialNonRedundancyUserReranker(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, value
rerankPermutation
public BinomialNonRedundancyUserReranker(Recommendation<U,I> recommendation, int maxLength)
recommendation
- input recommendation to be re-rankedmaxLength
- number of items to be greedily selectedprotected double nov(Tuple2od<I> itemValue)
LambdaReranker.LambdaUserReranker
nov
in class LambdaReranker.LambdaUserReranker
itemValue
- item-relevance pairprotected void update(Tuple2od<I> bestItemValue)
GreedyReranker.GreedyUserReranker
update
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.