Class InterCommunityReranker<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.communities.InterCommunityReranker<U>
- Type Parameters:
U
- type of the users
- All Implemented Interfaces:
es.uam.eps.ir.ranksys.novdiv.reranking.Reranker<U,U>
- Direct Known Subclasses:
InterCommunityDegreeGiniComplement
,InterCommunityEdgeGiniComplement
,InverseCommunitySizeReranker
,WeakTies
public abstract class InterCommunityReranker<U> extends LambdaReranker<U,U>
Reranker that uses community metrics of the user graph.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
InterCommunityReranker.CommunityMetricUserReranker
Class that reranks an individual recommendation using community metrics.Nested classes/interfaces inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.local.LambdaReranker
LambdaReranker.LambdaUserReranker
-
Field Summary
Fields Modifier and Type Field Description protected Communities<U>
communities
The set of communities of the graph.protected MultiGraph<java.lang.Integer>
communityGraph
The community graph.protected Graph<U>
graph
The user graph.Fields inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.local.LambdaReranker
lambda
-
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.local.LambdaReranker
getUserReranker, rerankPermutation
-
Field Details
-
communities
The set of communities of the graph. -
communityGraph
The community graph. -
graph
The user 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
- 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.communities
- the relation between users and communities.
-