Type Parameters:
U - type of the users
All Implemented Interfaces:
GlobalReranker<U,​U>
Direct Known Subclasses:
StrongTiesReranker, WeakTiesReranker

public abstract class CompleteCommunityReranker<U>
extends GraphLocalReranker<U>
Global reranker for computing metrics that only use links between pairs of communities.
  • Field Details

  • Constructor Details

    • CompleteCommunityReranker

      public CompleteCommunityReranker​(double lambda, int cutoff, java.util.function.Supplier<Normalizer<U>> norm, Graph<U> graph, Communities<U> communities, boolean selfloops)
      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.
      selfloops - true if self-loops are allowed, false otherwise.