Class OriginalInverseEdgeMetricReranker<U>
java.lang.Object
es.uam.eps.ir.ranksys.novdiv.reranking.PermutationReranker<U,I>
es.uam.eps.ir.ranksys.novdiv.reranking.GreedyReranker<U,I>
es.uam.eps.ir.relison.links.recommendation.reranking.local.LambdaReranker<U,U>
es.uam.eps.ir.relison.links.recommendation.reranking.local.edge.EdgeMetricReranker<U>
es.uam.eps.ir.relison.links.recommendation.reranking.local.edge.OriginalInverseEdgeMetricReranker<U>
- Type Parameters:
U
- type of the users
- All Implemented Interfaces:
es.uam.eps.ir.ranksys.novdiv.reranking.Reranker<U,U>
public class OriginalInverseEdgeMetricReranker<U> extends EdgeMetricReranker<U>
Reranker that minimizes the average value of an edge metric.
The value of the metric in the original graph is taken as the novelty score.
Individually reranks each recommendation.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
OriginalInverseEdgeMetricReranker.OriginalInverseGraphMetricEdgeReranker
Class that reranks an individual recommendation using the inverse value of an edge metric.Nested classes/interfaces inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.local.edge.EdgeMetricReranker
EdgeMetricReranker.GraphMetricEdgeReranker
Nested classes/interfaces inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.local.LambdaReranker
LambdaReranker.LambdaUserReranker
-
Field Summary
Fields inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.local.edge.EdgeMetricReranker
graph, metric
Fields inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.local.LambdaReranker
lambda
-
Constructor Summary
Constructors Constructor Description OriginalInverseEdgeMetricReranker(double lambda, int cutoff, java.util.function.Supplier<Normalizer<U>> norm, Graph<U> graph, PairMetric<U> metric)
Constructor. -
Method Summary
Modifier and Type Method Description protected es.uam.eps.ir.ranksys.novdiv.reranking.GreedyReranker.GreedyUserReranker<U,U>
getUserReranker(es.uam.eps.ir.ranksys.core.Recommendation<U,U> recommendation, int maxLength)
Methods inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.local.LambdaReranker
rerankPermutation
-
Constructor Details
-
OriginalInverseEdgeMetricReranker
public OriginalInverseEdgeMetricReranker(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 to optimize.
-
-
Method Details
-
getUserReranker
protected es.uam.eps.ir.ranksys.novdiv.reranking.GreedyReranker.GreedyUserReranker<U,U> getUserReranker(es.uam.eps.ir.ranksys.core.Recommendation<U,U> recommendation, int maxLength)- Specified by:
getUserReranker
in classLambdaReranker<U,U>
-