U
- type of the usersI
- type of the itemspublic class DitheringReranker<U,I> extends PermutationReranker<U,I>
Constructor and Description |
---|
DitheringReranker(double variance)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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 DitheringReranker(double variance)
variance
- variance of the gaussian noise to be added to the original
recommendation scores.public int[] rerankPermutation(Recommendation<U,I> recommendation, int maxLength)
PermutationReranker
rerankPermutation
in class PermutationReranker<U,I>
recommendation
- input recommendationmaxLength
- maximum length of the permutationCopyright © 2016. All rights reserved.