U
- type of the usersI
- type of the itemspublic abstract class GreedyReranker<U,I> extends PermutationReranker<U,I>
GreedyReranker.GreedyUserReranker
.Modifier and Type | Class and Description |
---|---|
protected class |
GreedyReranker.GreedyUserReranker<U,I>
Re-ranker of a single recommendation.
|
Modifier and Type | Field and Description |
---|---|
protected int |
cutoff
Cut-off of the re-ranking.
|
Constructor and Description |
---|
GreedyReranker(int cutoff)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract GreedyReranker.GreedyUserReranker<U,I> |
getUserReranker(Recommendation<U,I> recommendation,
int maxLength)
Returns an instance of
GreedyReranker.GreedyUserReranker that does the greedy
selection. |
int[] |
rerankPermutation(Recommendation<U,I> recommendation,
int maxLength)
Returns the permutation that is applied to the input recommendation
to generate the re-ranked recommendation.
|
getBasePerm, permuteRecommendation, rerankRecommendation
public GreedyReranker(int cutoff)
cutoff
- how many items are re-ranked by the greedy selection.public int[] rerankPermutation(Recommendation<U,I> recommendation, int maxLength)
rerankPermutation
in class PermutationReranker<U,I>
recommendation
- input recommendationmaxLength
- maximum length of the permutationprotected abstract GreedyReranker.GreedyUserReranker<U,I> getUserReranker(Recommendation<U,I> recommendation, int maxLength)
GreedyReranker.GreedyUserReranker
that does the greedy
selection.recommendation
- input recommendation to be re-rankedmaxLength
- maximum length of the resulting re-ranked recommendationGreedyReranker.GreedyUserReranker
that does the re-rankingCopyright © 2016. All rights reserved.