Class InterCommunityEdgeGiniComplement.CommPairGiniUserReranker
java.lang.Object
es.uam.eps.ir.relison.links.recommendation.reranking.local.LambdaReranker.LambdaUserReranker
es.uam.eps.ir.relison.links.recommendation.reranking.local.communities.InterCommunityReranker.CommunityMetricUserReranker
es.uam.eps.ir.relison.links.recommendation.reranking.local.communities.InterCommunityEdgeGiniComplement.CommPairGiniUserReranker
- Enclosing class:
- InterCommunityEdgeGiniComplement<U>
public class InterCommunityEdgeGiniComplement.CommPairGiniUserReranker extends InterCommunityReranker.CommunityMetricUserReranker
Class that reranks an individual recommendation using Community Pair Gini.
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.lang.Double>matrixthe number of edges between each pair of communities.private doublesumThe total number of edges between communitiesFields inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.local.communities.InterCommunityReranker.CommunityMetricUserReranker
communities, communityGraphFields inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.local.LambdaReranker.LambdaUserReranker
novMap, novStats, relStats -
Constructor Summary
Constructors Constructor Description CommPairGiniUserReranker(es.uam.eps.ir.ranksys.core.Recommendation<U,U> recommendation, int maxLength, MultiGraph<java.lang.Integer> communityGraph, Communities<U> communities, java.util.List<java.lang.Double> matrix, double sum)Constructor -
Method Summary
Methods inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.local.LambdaReranker.LambdaUserReranker
selectItem, value
-
Field Details
-
Constructor Details
-
CommPairGiniUserReranker
public CommPairGiniUserReranker(es.uam.eps.ir.ranksys.core.Recommendation<U,U> recommendation, int maxLength, MultiGraph<java.lang.Integer> communityGraph, Communities<U> communities, java.util.List<java.lang.Double> matrix, double sum)Constructor- Parameters:
recommendation- the recommendation to be rerankedmaxLength- the maximum length of the reranked list.communityGraph- the community graph.communities- the communitiesmatrix- the number of edges between each pair of communities.sum- the sum of the degrees.
-
-
Method Details
-
nov
Description copied from class:LambdaReranker.LambdaUserRerankerReturns the novelty score of an item.- Specified by:
novin classLambdaReranker.LambdaUserReranker- Parameters:
tpld- item-relevance pair- Returns:
- the novelty of the item
-
update
-