Class ClusteringCoefficientComplement<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.graph.ClusteringCoefficientComplement<U>
Type Parameters:
U - Type of the users.
All Implemented Interfaces:
es.uam.eps.ir.ranksys.novdiv.reranking.Reranker<U,​U>

public class ClusteringCoefficientComplement<U>
extends LambdaReranker<U,​U>
Reranker that tries to promote the opposite of the clustering coefficient of the graph.
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    protected class  ClusteringCoefficientComplement.ClusteringCoefficientUserReranker
    The individual reranker.

    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 
    Modifier and Type Field Description
    private Graph<U> graph
    The original graph.
    private double triangles
    The number of triangles in the graph.
    private double triplets
    The number of triads in the 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
    ClusteringCoefficientComplement​(double lambda, int cutoff, java.util.function.Supplier<Normalizer<U>> norm, Graph<U> graph)
    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
  • Field Details

    • graph

      private final Graph<U> graph
      The original graph.
    • triplets

      private double triplets
      The number of triads in the graph.
    • triangles

      private double triangles
      The number of triangles in the graph.
  • Constructor Details

    • ClusteringCoefficientComplement

      public ClusteringCoefficientComplement​(double lambda, int cutoff, java.util.function.Supplier<Normalizer<U>> norm, Graph<U> graph)
      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.
  • 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>