U - type of the usersI - type of the itemspublic abstract class LambdaReranker<U,I> extends GreedyReranker<U,I>
| Modifier and Type | Class and Description |
|---|---|
protected class |
LambdaReranker.LambdaUserReranker
User re-ranker for
LambdaReranker. |
GreedyReranker.GreedyUserReranker<U,I>| Modifier and Type | Field and Description |
|---|---|
protected double |
lambda
Trade-off parameter of the linear combination.
|
cutoff| Constructor and Description |
|---|
LambdaReranker(double lambda,
int cutoff,
boolean norm)
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, rerankRecommendationpublic LambdaReranker(double lambda,
int cutoff,
boolean norm)
lambda - trade-off parameter of the linear combinationcutoff - how many items are re-ranked by the greedy selection.norm - decides whether apply a normalization of the values of the
component at each selection steppublic int[] rerankPermutation(Recommendation<U,I> recommendation, int maxLength)
rerankPermutation in class GreedyReranker<U,I>recommendation - input recommendationmaxLength - maximum length of the permutationprotected abstract GreedyReranker.GreedyUserReranker<U,I> getUserReranker(Recommendation<U,I> recommendation, int maxLength)
GreedyRerankerGreedyReranker.GreedyUserReranker that does the greedy
selection.getUserReranker in class GreedyReranker<U,I>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.