java.lang.Object
es.uam.eps.ir.ranksys.novdiv.reranking.PermutationReranker<U,​I>
es.uam.eps.ir.ranksys.novdiv.reranking.GreedyReranker<U,​I>
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

    Nested classes/interfaces inherited from class es.uam.eps.ir.ranksys.novdiv.reranking.GreedyReranker

    es.uam.eps.ir.ranksys.novdiv.reranking.GreedyReranker.GreedyUserReranker<U extends java.lang.Object,​I extends java.lang.Object>
  • 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

    Fields inherited from class es.uam.eps.ir.ranksys.novdiv.reranking.GreedyReranker

    cutoff
  • 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

    Methods inherited from class es.uam.eps.ir.ranksys.novdiv.reranking.PermutationReranker

    getBasePerm, permuteRecommendation, rerankRecommendation

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 class LambdaReranker<U,​U>