Class OriginalInverseUserMetricReranker<U>
java.lang.Object
es.uam.eps.ir.relison.links.recommendation.reranking.global.local.LocalReranker<U,I>
es.uam.eps.ir.relison.links.recommendation.reranking.global.local.LocalGreedyReranker<U,I>
es.uam.eps.ir.relison.links.recommendation.reranking.global.local.LocalLambdaReranker<U,U>
es.uam.eps.ir.relison.links.recommendation.reranking.global.local.GraphLocalReranker<U>
es.uam.eps.ir.relison.links.recommendation.reranking.global.local.user.UserMetricReranker<U>
es.uam.eps.ir.relison.links.recommendation.reranking.global.local.user.OriginalInverseUserMetricReranker<U>
- Type Parameters:
- U- type of the users
- All Implemented Interfaces:
- GlobalReranker<U,U>
public class OriginalInverseUserMetricReranker<U> extends UserMetricReranker<U>
Reranker that minimizes the average value of vertex metric.
 The value of the metric in the original graph is taken as the novelty score.
- 
Field SummaryFields Modifier and Type Field Description private java.util.Map<U,java.lang.Double>valuesMetric values for each node in the graphFields inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.local.user.UserMetricRerankermetricFields inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.local.GraphLocalRerankergraphFields inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.local.LocalLambdaRerankernovMap, novStats, relStatsFields inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.local.LocalGreedyRerankercutOff
- 
Constructor SummaryConstructors Constructor Description OriginalInverseUserMetricReranker(double lambda, int cutoff, java.util.function.Supplier<Normalizer<U>> norm, Graph<U> graph, VertexMetric<U> metric)Constructor.
- 
Method SummaryModifier and Type Method Description protected voidinnerUpdate(U user, org.ranksys.core.util.tuples.Tuple2od<U> bestItemValue)Updates the different parameters of the reranker, further than changing the edges in the graph.protected doublenov(U u, org.ranksys.core.util.tuples.Tuple2od<U> iv)Novelty score.protected voidupdate(es.uam.eps.ir.ranksys.core.Recommendation<U,U> reranked)Updates the values, given a new recommendation.protected voidupdate(U user, org.ranksys.core.util.tuples.Tuple2od<U> bestItemValue)Given a user, and the next value to add, updates the reranker parameters.Methods inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.local.LocalLambdaRerankerrerankPermutation, selectItem, valueMethods inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.local.LocalGreedyRerankergetBasePerm, rerankRecommendationMethods inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.local.LocalRerankerrerankRecommendations
- 
Field Details- 
valuesMetric values for each node in the graph
 
- 
- 
Constructor Details- 
OriginalInverseUserMetricRerankerpublic OriginalInverseUserMetricReranker(double lambda, int cutoff, java.util.function.Supplier<Normalizer<U>> norm, Graph<U> graph, VertexMetric<U> metric)Constructor.- Parameters:
- lambda- trade-off between the original and novelty scores
- cutoff- maximum length of the definitive ranking.
- norm- the normalization strategy.
- graph- the original graph.
- metric- the vertex metric to optimize.
 
 
- 
- 
Method Details- 
novDescription copied from class:LocalLambdaRerankerNovelty score.- Specified by:
- novin class- LocalLambdaReranker<U,U>
- Parameters:
- u- the target user.
- iv- the recommended item and its recommendation score.
- Returns:
- the novelty for this pair user-item.
 
- 
innerUpdateDescription copied from class:GraphLocalRerankerUpdates the different parameters of the reranker, further than changing the edges in the graph.- Specified by:
- innerUpdatein class- GraphLocalReranker<U>
- Parameters:
- user- the target user.
- bestItemValue- the new candidate user.
 
- 
updateDescription copied from class:LocalGreedyRerankerGiven a user, and the next value to add, updates the reranker parameters.- Overrides:
- updatein class- GraphLocalReranker<U>
- Parameters:
- user- The user
- bestItemValue- The next value to add at the ranking
 
- 
updateDescription copied from class:LocalRerankerUpdates the values, given a new recommendation.- Specified by:
- updatein class- LocalReranker<U,U>
- Parameters:
- reranked- the reranked recommendation.
 
 
-