Class InverseGraphMetricReranker<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.graph.GraphMetricReranker<U>
es.uam.eps.ir.relison.links.recommendation.reranking.local.graph.InverseGraphMetricReranker<U>
- Type Parameters:
U- type of the users
- All Implemented Interfaces:
es.uam.eps.ir.ranksys.novdiv.reranking.Reranker<U,U>
public class InverseGraphMetricReranker<U> extends GraphMetricReranker<U>
Individual reranker, which reorders a recommendation to demote
a graph metric.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classInverseGraphMetricReranker.DirectGraphMetricUserRerankerThe individual reranker.Nested classes/interfaces inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.local.graph.GraphMetricReranker
GraphMetricReranker.GraphMetricUserRerankerNested 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.graph.GraphMetricReranker
graph, metricFields inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.local.LambdaReranker
lambda -
Constructor Summary
Constructors Constructor Description InverseGraphMetricReranker(double lambda, int cutoff, java.util.function.Supplier<Normalizer<U>> norm, Graph<U> graph, GraphMetric<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
-
InverseGraphMetricReranker
public InverseGraphMetricReranker(double lambda, int cutoff, java.util.function.Supplier<Normalizer<U>> norm, Graph<U> graph, GraphMetric<U> metric)Constructor.- Parameters:
lambda- param that establishes a balance between the score and the novelty/diversity value.cutoff- number of elements to take.norm- the normalization function.graph- the 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:
getUserRerankerin classLambdaReranker<U,U>
-