Class InterCommunityEdgeGiniComplement<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>
es.uam.eps.ir.relison.links.recommendation.reranking.local.communities.InterCommunityEdgeGiniComplement<U>
- Type Parameters:
U
- type of the users
- All Implemented Interfaces:
es.uam.eps.ir.ranksys.novdiv.reranking.Reranker<U,U>
public class InterCommunityEdgeGiniComplement<U> extends InterCommunityReranker<U>
Reranks a recommendation by improving the Gini Index of the pairs of
different communities in a community graph.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
InterCommunityEdgeGiniComplement.CommPairGiniUserReranker
Class that reranks an individual recommendation using Community Pair Gini.Nested classes/interfaces inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.local.communities.InterCommunityReranker
InterCommunityReranker.CommunityMetricUserReranker
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 private java.util.List<java.lang.Double>
matrix
the number of edges between each pair of communities.private double
sum
The total number of edges between communitiesFields inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.local.communities.InterCommunityReranker
communities, communityGraph, graph
Fields inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.local.LambdaReranker
lambda
-
Constructor Summary
Constructors Constructor Description InterCommunityEdgeGiniComplement(double lambda, int cutoff, java.util.function.Supplier<Normalizer<U>> norm, Graph<U> graph, Communities<U> communities)
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> r, int i)
Methods inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.local.LambdaReranker
rerankPermutation
-
Field Details
-
Constructor Details
-
InterCommunityEdgeGiniComplement
public InterCommunityEdgeGiniComplement(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.
-
-
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> r, int i)- Specified by:
getUserReranker
in classLambdaReranker<U,U>
-