Class InverseGraphMetricReranker<U>
java.lang.Object
es.uam.eps.ir.relison.links.recommendation.reranking.global.globalranking.GlobalRankingGreedyReranker<U,I>
es.uam.eps.ir.relison.links.recommendation.reranking.global.globalranking.GlobalRankingLambdaReranker<U,U>
es.uam.eps.ir.relison.links.recommendation.reranking.global.globalranking.graph.GraphMetricReranker<U>
es.uam.eps.ir.relison.links.recommendation.reranking.global.globalranking.graph.InverseGraphMetricReranker<U>
- Type Parameters:
U
- type of the users.
- All Implemented Interfaces:
GlobalReranker<U,U>
public class InverseGraphMetricReranker<U> extends GraphMetricReranker<U>
Global reranker strategy that reorders the candidate users for minimizing a graph metric.
-
Field Summary
Fields inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.globalranking.graph.GraphMetricReranker
graph, metric
Fields inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.globalranking.GlobalRankingLambdaReranker
lambda, novStats, recStats
Fields inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.globalranking.GlobalRankingGreedyReranker
cutOff
-
Constructor Summary
Constructors Constructor Description InverseGraphMetricReranker(double lambda, int cutoff, java.util.function.Supplier<Normalizer<U>> norm, Graph<U> graph, GraphMetric<U> metric)
Constructor. -
Method Summary
Methods inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.globalranking.graph.GraphMetricReranker
update
Methods inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.globalranking.GlobalRankingLambdaReranker
score, selectRecommendation
Methods inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.globalranking.GlobalRankingGreedyReranker
rerankRecommendations
-
Constructor Details
-
InverseGraphMetricReranker
public InverseGraphMetricReranker(double lambda, int cutoff, java.util.function.Supplier<Normalizer<U>> norm, Graph<U> graph, GraphMetric<U> metric)Constructor.- Parameters:
lambda
- trade-off between the recommendation score and the novelty/diversity value.cutoff
- number of elements to take.norm
- the normalization strategy.graph
- the original graph.metric
- the metric we want to optimize.
-
-
Method Details
-
nov
Description copied from class:GlobalRankingLambdaReranker
Finds the novelty score for a user-item pair.- Specified by:
nov
in classGlobalRankingLambdaReranker<U,U>
- Parameters:
user
- the target user.iv
- the candidate item (with its score).- Returns:
- the novelty value for the item.
-