Class DirectEdgeMetricReranker<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.edge.EdgeMetricReranker<U>
es.uam.eps.ir.relison.links.recommendation.reranking.global.globalranking.edge.DirectEdgeMetricReranker<U>
- Type Parameters:
U- type of the users.
- All Implemented Interfaces:
GlobalReranker<U,U>
public class DirectEdgeMetricReranker<U> extends EdgeMetricReranker<U>
Global reranker strategy that optimizes the average value of an edge metric.
-
Field Summary
Fields inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.globalranking.edge.EdgeMetricReranker
graph, metricFields inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.globalranking.GlobalRankingLambdaReranker
lambda, novStats, recStatsFields inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.globalranking.GlobalRankingGreedyReranker
cutOff -
Constructor Summary
Constructors Constructor Description DirectEdgeMetricReranker(double lambda, int cutoff, java.util.function.Supplier<Normalizer<U>> norm, Graph<U> graph, PairMetric<U> metric)Constructor. -
Method Summary
Methods inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.globalranking.edge.EdgeMetricReranker
updateMethods inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.globalranking.GlobalRankingLambdaReranker
score, selectRecommendationMethods inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.globalranking.GlobalRankingGreedyReranker
rerankRecommendations
-
Constructor Details
-
DirectEdgeMetricReranker
public DirectEdgeMetricReranker(double lambda, int cutoff, java.util.function.Supplier<Normalizer<U>> norm, Graph<U> graph, PairMetric<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:GlobalRankingLambdaRerankerFinds the novelty score for a user-item pair.- Specified by:
novin classGlobalRankingLambdaReranker<U,U>- Parameters:
user- the target user.iv- the candidate item (with its score).- Returns:
- the novelty value for the item.
-