Class GraphMetricReranker<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.graph.GraphMetricReranker<U>
- Type Parameters:
U
- type of the users.
- All Implemented Interfaces:
GlobalReranker<U,U>
- Direct Known Subclasses:
DirectGraphMetricReranker
,InverseGraphMetricReranker
public abstract class GraphMetricReranker<U> extends GraphLocalReranker<U>
Reranker strategy that reorders the candidate users according to
a graph metric.
-
Field Summary
Fields Modifier and Type Field Description protected GraphMetric<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 GraphMetricReranker(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.local.GraphLocalReranker
innerUpdate
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
-
GraphMetricReranker
public GraphMetricReranker(double lambda, int cutoff, java.util.function.Supplier<Normalizer<U>> norm, Graph<U> graph, GraphMetric<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.
-
-
Method Details
-
update
Description copied from class:LocalGreedyReranker
Given a user, and the next value to add, updates the reranker parameters.- Overrides:
update
in classGraphLocalReranker<U>
- Parameters:
user
- The userbestItemValue
- The next value to add at the ranking
-