Class WeakTies<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.WeakTies<U>
- Type Parameters:
U
- type of the users.
- All Implemented Interfaces:
es.uam.eps.ir.ranksys.novdiv.reranking.Reranker<U,U>
public class WeakTies<U> extends InterCommunityReranker<U>
Implementation of a reranker which promotes the number of weak ties (links between communities).
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
WeakTies.ModularityUserReranker
Class that reranks an individual recommendation using modularity.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 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 WeakTies(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
-
Constructor Details
-
WeakTies
public WeakTies(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.
-
-
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>
-