U
- type of the usersI
- type of the itemspublic abstract class BayesRuleReranker<U,I> extends PermutationReranker<U,I>
Constructor and Description |
---|
BayesRuleReranker() |
Modifier and Type | Method and Description |
---|---|
protected abstract double |
likelihood(Tuple2od<I> iv)
Returns the likelihood of an item: p(u | i).
|
protected abstract double |
prior(I i)
Returns the prior of an item: p(i).
|
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 int[] rerankPermutation(Recommendation<U,I> recommendation, int maxLength)
PermutationReranker
rerankPermutation
in class PermutationReranker<U,I>
recommendation
- input recommendationmaxLength
- maximum length of the permutationprotected abstract double likelihood(Tuple2od<I> iv)
iv
- item-relevance pairprotected abstract double prior(I i)
i
- itemCopyright © 2016. All rights reserved.