Class OriginalDirectEdgeMetricReranker.OriginalDirectGraphMetricEdgeReranker

java.lang.Object
es.uam.eps.ir.relison.links.recommendation.reranking.local.LambdaReranker.LambdaUserReranker
es.uam.eps.ir.relison.links.recommendation.reranking.local.edge.EdgeMetricReranker.GraphMetricEdgeReranker
es.uam.eps.ir.relison.links.recommendation.reranking.local.edge.OriginalDirectEdgeMetricReranker.OriginalDirectGraphMetricEdgeReranker
Enclosing class:
OriginalDirectEdgeMetricReranker<U>

protected class OriginalDirectEdgeMetricReranker.OriginalDirectGraphMetricEdgeReranker
extends EdgeMetricReranker.GraphMetricEdgeReranker
Class that reranks an individual recommendation using the original value of the edge metric.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private java.util.Map<U,​java.lang.Double> values
    the values for each user in the ranking

    Fields inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.local.edge.EdgeMetricReranker.GraphMetricEdgeReranker

    graph, metric

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

    novMap, novStats, relStats
  • Constructor Summary

    Constructors 
    Constructor Description
    OriginalDirectGraphMetricEdgeReranker​(es.uam.eps.ir.ranksys.core.Recommendation<U,​U> recommendation, int maxLength, Graph<U> graph, PairMetric<U> metric)
    Constructor.
  • Method Summary

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

    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

    • values

      private final java.util.Map<U,​java.lang.Double> values
      the values for each user in the ranking
  • Constructor Details

    • OriginalDirectGraphMetricEdgeReranker

      public OriginalDirectGraphMetricEdgeReranker​(es.uam.eps.ir.ranksys.core.Recommendation<U,​U> recommendation, int maxLength, Graph<U> graph, PairMetric<U> metric)
      Constructor.
      Parameters:
      recommendation - the recommendation we want to rerank.
      maxLength - the maximum length of the definitive ranking.
      graph - the graph.
      metric - the metric we want to use for reranking.
  • Method Details

    • nov

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

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