Class ProgressiveDirectUserMetricReranker.ProgressiveDirectUserMetricUserReranker

java.lang.Object
es.uam.eps.ir.relison.links.recommendation.reranking.local.LambdaReranker.LambdaUserReranker
es.uam.eps.ir.relison.links.recommendation.reranking.local.user.UserMetricReranker.UserMetricUserReranker
es.uam.eps.ir.relison.links.recommendation.reranking.local.user.ProgressiveDirectUserMetricReranker.ProgressiveDirectUserMetricUserReranker
Enclosing class:
ProgressiveDirectUserMetricReranker<U>

protected class ProgressiveDirectUserMetricReranker.ProgressiveDirectUserMetricUserReranker
extends UserMetricReranker.UserMetricUserReranker
The class for generating the reranking.
  • Constructor Details

    • ProgressiveDirectUserMetricUserReranker

      public ProgressiveDirectUserMetricUserReranker​(es.uam.eps.ir.ranksys.core.Recommendation<U,​U> recommendation, int maxLength, Graph<U> graph, VertexMetric<U> metric)
      Constructor.
      Parameters:
      recommendation - the recommendation to rerank.
      maxLength - the maximum length of the definitive ranking.
      graph - the network.
      metric - the metric to promote.
  • 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)