Class EdgeMetricReranker<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.edge.EdgeMetricReranker<U>
- Type Parameters:
U
- type of the users.
- All Implemented Interfaces:
GlobalReranker<U,U>
- Direct Known Subclasses:
OriginalDirectEdgeMetricReranker
,OriginalInverseEdgeMetricReranker
,ProgressiveDirectEdgeMetricReranker
,ProgressiveInverseEdgeMetricReranker
public abstract class EdgeMetricReranker<U> extends GraphLocalReranker<U>
Reranker strategy that optimizes the average value of an edge metric.
-
Field Summary
Fields Modifier and Type Field Description protected PairMetric<U>
metric
The selected metric.Fields inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.local.GraphLocalReranker
graph
Fields inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.local.LocalLambdaReranker
novMap, novStats, relStats
Fields inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.local.LocalGreedyReranker
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.local.GraphLocalReranker
innerUpdate, update
Methods inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.local.LocalLambdaReranker
nov, rerankPermutation, selectItem, value
Methods inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.local.LocalGreedyReranker
getBasePerm, rerankRecommendation
Methods inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.local.LocalReranker
rerankRecommendations, update
-
Field Details
-
metric
The selected metric.
-
-
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.
-