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) |
getBasePerm, permuteRecommendation, rerankRecommendationpublic int[] rerankPermutation(Recommendation<U,I> recommendation, int maxLength)
rerankPermutation in class PermutationReranker<U,I>protected abstract double likelihood(Tuple2od<I> iv)
iv - item-relevance pairprotected abstract double prior(I i)
i - itemCopyright © 2016. All rights reserved.