Class CompleteCommunityReranker<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.CompleteCommunityReranker<U>
- Type Parameters:
U- type of the users
- All Implemented Interfaces:
GlobalReranker<U,U>
- Direct Known Subclasses:
ModularityComplement
public abstract class CompleteCommunityReranker<U> extends GlobalRankingLambdaReranker<U,U>
Reranker that uses community metrics of the user graph.
-
Field Summary
Fields Modifier and Type Field Description protected Communities<U>communitiesCommunities of the graph.protected MultiGraph<java.lang.Integer>communityGraphThe community graph.protected Graph<U>graphThe original graph.Fields inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.globalranking.GlobalRankingLambdaReranker
lambda, novStats, recStatsFields inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.globalranking.GlobalRankingGreedyReranker
cutOff -
Constructor Summary
Constructors Constructor Description CompleteCommunityReranker(double lambda, int cutoff, java.util.function.Supplier<Normalizer<U>> norm, Graph<U> graph, Communities<U> communities, boolean selfloops)Constructor. -
Method Summary
Methods inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.globalranking.GlobalRankingLambdaReranker
nov, score, selectRecommendationMethods 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
-
CompleteCommunityReranker
public CompleteCommunityReranker(double lambda, int cutoff, java.util.function.Supplier<Normalizer<U>> norm, Graph<U> graph, Communities<U> communities, boolean selfloops)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.selfloops- true if self-loops are allowed, false otherwise.
-