Class EdgeMetricReranker<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>
- Type Parameters:
U
- type of the users.
- All Implemented Interfaces:
GlobalReranker<U,U>
- Direct Known Subclasses:
DirectEdgeMetricReranker
,InverseEdgeMetricReranker
public abstract class EdgeMetricReranker<U> extends GlobalRankingLambdaReranker<U,U>
Global reranker strategy that reorders the candidate users according to
an edge metric that we want to optimize.
-
Field Summary
Fields Modifier and Type Field Description protected Graph<U>
graph
The graph.protected PairMetric<U>
metric
The selected metricFields 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 EdgeMetricReranker(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.GlobalRankingLambdaReranker
nov, score, selectRecommendation
Methods inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.globalranking.GlobalRankingGreedyReranker
rerankRecommendations
-
Field Details
-
Constructor Details
-
EdgeMetricReranker
public EdgeMetricReranker(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
-
update
Description copied from class:GlobalRankingGreedyReranker
Updates the value of the objective function after a selection.- Specified by:
update
in classGlobalRankingGreedyReranker<U,U>
- Parameters:
user
- the selected user.bestItemValue
- the selected item and its score.
-