Class WeakTies.ModularityUserReranker
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.WeakTies.ModularityUserReranker
protected class WeakTies.ModularityUserReranker extends InterCommunityReranker.CommunityMetricUserReranker
Class that reranks an individual recommendation using modularity.
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<U,java.lang.Integer>inDegreeThe relation between the users and their in-degree.protected longnumEdgesThe number of edges of the user graph.protected java.util.Map<U,java.lang.Integer>outDegreeThe relation between the users and their out-degree.protected doublesumK(G,C) = \sum_i,j |\Gamma_out(i)||\Gamma_in(j)|\delta(c_i, c_j)Fields 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 ModularityUserReranker(es.uam.eps.ir.ranksys.core.Recommendation<U,U> recommendation, int maxLength, Graph<U> graph, MultiGraph<java.lang.Integer> communityGraph, Communities<U> communities)Constructor. -
Method Summary
Methods inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.local.LambdaReranker.LambdaUserReranker
selectItem, value
-
Field Details
-
Constructor Details
-
ModularityUserReranker
public ModularityUserReranker(es.uam.eps.ir.ranksys.core.Recommendation<U,U> recommendation, int maxLength, Graph<U> graph, MultiGraph<java.lang.Integer> communityGraph, Communities<U> communities)Constructor.- Parameters:
recommendation- the recommendations for the user.maxLength- the maximum number of items to recommend.graph- the user graph.communityGraph- the community graph.communities- the relation between users and communities.
-
-
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
-