Class InterCommunityReranker<U>
java.lang.Object
es.uam.eps.ir.relison.links.recommendation.reranking.global.globalranking.GlobalRankingGreedyReranker<U,I>
es.uam.eps.ir.relison.links.recommendation.reranking.global.globalranking.GlobalRankingLambdaReranker<U,U>
es.uam.eps.ir.relison.links.recommendation.reranking.global.globalranking.communities.InterCommunityReranker<U>
- Type Parameters:
U
- type of the users
- All Implemented Interfaces:
GlobalReranker<U,U>
- Direct Known Subclasses:
InterCommunityDegreeGiniComplement
,InterCommunityEdgeGiniComplement
,InverseCommunitySize
public abstract class InterCommunityReranker<U> extends GlobalRankingLambdaReranker<U,U>
Global reranker for computing metrics that only use links between pairs of communities.
-
Field Summary
Fields Modifier and Type Field Description protected Communities<U>
communities
Communities of the graph.protected MultiGraph<java.lang.Integer>
communityGraph
The community graph.protected Graph<U>
graph
The original graph.Fields inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.globalranking.GlobalRankingLambdaReranker
lambda, novStats, recStats
Fields inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.globalranking.GlobalRankingGreedyReranker
cutOff
-
Constructor Summary
Constructors Constructor Description InterCommunityReranker(double lambda, int cutoff, java.util.function.Supplier<Normalizer<U>> norm, Graph<U> graph, Communities<U> communities)
Constructor. -
Method Summary
Methods inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.globalranking.GlobalRankingLambdaReranker
nov, score, selectRecommendation
Methods inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.globalranking.GlobalRankingGreedyReranker
rerankRecommendations, update
-
Field Details
-
communities
Communities of the graph. -
communityGraph
The community graph. -
graph
The original graph.
-
-
Constructor Details
-
InterCommunityReranker
public InterCommunityReranker(double lambda, int cutoff, java.util.function.Supplier<Normalizer<U>> norm, Graph<U> graph, Communities<U> communities)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.communities
- the relation between users and communities.
-