Class ClusteringCoefficientComplement.ClusteringCoefficientUserReranker

java.lang.Object
es.uam.eps.ir.relison.links.recommendation.reranking.local.LambdaReranker.LambdaUserReranker
es.uam.eps.ir.relison.links.recommendation.reranking.local.graph.ClusteringCoefficientComplement.ClusteringCoefficientUserReranker
Enclosing class:
ClusteringCoefficientComplement<U>

protected class ClusteringCoefficientComplement.ClusteringCoefficientUserReranker
extends LambdaReranker.LambdaUserReranker
The individual reranker.
  • 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.LambdaUserReranker

    novMap, novStats, relStats
  • Constructor Summary

    Constructors 
    Constructor Description
    ClusteringCoefficientUserReranker​(es.uam.eps.ir.ranksys.core.Recommendation<U,​U> recommendation, int maxLength, Graph<U> graph, double triplets, double triangles)
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    protected double nov​(org.ranksys.core.util.tuples.Tuple2od<U> tpld)
    Returns the novelty score of an item.
    protected void update​(org.ranksys.core.util.tuples.Tuple2od<U> tpld)  

    Methods inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.local.LambdaReranker.LambdaUserReranker

    selectItem, value

    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

    • ClusteringCoefficientUserReranker

      public ClusteringCoefficientUserReranker​(es.uam.eps.ir.ranksys.core.Recommendation<U,​U> recommendation, int maxLength, Graph<U> graph, double triplets, double triangles)
      Constructor.
      Parameters:
      recommendation - the recommendation to rerank.
      maxLength - the maximum length of the definitive ranking.
      graph - the network.
      triplets - the initial number of triplets.
      triangles - the initial number of triangles.
  • Method Details

    • nov

      protected double nov​(org.ranksys.core.util.tuples.Tuple2od<U> tpld)
      Description copied from class: LambdaReranker.LambdaUserReranker
      Returns the novelty score of an item.
      Specified by:
      nov in class LambdaReranker.LambdaUserReranker
      Parameters:
      tpld - item-relevance pair
      Returns:
      the novelty of the item
    • update

      protected void update​(org.ranksys.core.util.tuples.Tuple2od<U> tpld)