Class UserMetricReranker<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>
- Type Parameters:
U
- type of the users.
- All Implemented Interfaces:
GlobalReranker<U,U>
- Direct Known Subclasses:
OriginalDirectUserMetricReranker
,OriginalInverseUserMetricReranker
,ProgressiveDirectUserMetricReranker
,ProgressiveInverseUserMetricReranker
public abstract class UserMetricReranker<U> extends GraphLocalReranker<U>
Abstract implementation of a reranking strategy for contact recommendation that modifies the order
of the candidate users according to some vertex metric.
-
Field Summary
Fields Modifier and Type Field Description protected VertexMetric<U>
metric
The selected metricFields 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 UserMetricReranker(double lambda, int cutoff, java.util.function.Supplier<Normalizer<U>> norm, Graph<U> graph, VertexMetric<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
-
UserMetricReranker
public UserMetricReranker(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 scorescutoff
- maximum length of the definitive ranking.norm
- the normalization strategy.graph
- the original graph.metric
- the vertex metric to optimize.
-