Class LambdaReranker.LambdaUserReranker

java.lang.Object
es.uam.eps.ir.relison.links.recommendation.reranking.local.LambdaReranker.LambdaUserReranker
Direct Known Subclasses:
ClusteringCoefficientComplement.ClusteringCoefficientUserReranker, EdgeMetricReranker.GraphMetricEdgeReranker, GraphMetricReranker.GraphMetricUserReranker, InterCommunityReranker.CommunityMetricUserReranker, UserMetricReranker.UserMetricUserReranker
Enclosing class:
LambdaReranker<U,​I>

protected abstract class LambdaReranker.LambdaUserReranker
extends java.lang.Object
User re-ranker for LambdaReranker.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected it.unimi.dsi.fastutil.objects.Object2DoubleMap<I> novMap
    Map of the novelty of each item.
    protected Normalizer<I> novStats
    Statistics about novelty scores.
    protected Normalizer<I> relStats
    Statistics about relevance scores.
  • Constructor Summary

    Constructors 
    Constructor Description
    LambdaUserReranker​(es.uam.eps.ir.ranksys.core.Recommendation<U,​I> recommendation, int maxLength)
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    protected abstract double nov​(org.ranksys.core.util.tuples.Tuple2od<I> iv)
    Returns the novelty score of an item.
    protected int selectItem​(it.unimi.dsi.fastutil.ints.IntSortedSet remainingI, java.util.List<org.ranksys.core.util.tuples.Tuple2od<I>> list)  
    protected double value​(org.ranksys.core.util.tuples.Tuple2od<I> iv)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • relStats

      protected Normalizer<I> relStats
      Statistics about relevance scores.
    • novStats

      protected Normalizer<I> novStats
      Statistics about novelty scores.
    • novMap

      protected it.unimi.dsi.fastutil.objects.Object2DoubleMap<I> novMap
      Map of the novelty of each item.
  • Constructor Details

    • LambdaUserReranker

      public LambdaUserReranker​(es.uam.eps.ir.ranksys.core.Recommendation<U,​I> recommendation, int maxLength)
      Constructor.
      Parameters:
      recommendation - input recommendation
      maxLength - maximum length of the re-ranked recommendation
  • Method Details

    • selectItem

      protected int selectItem​(it.unimi.dsi.fastutil.ints.IntSortedSet remainingI, java.util.List<org.ranksys.core.util.tuples.Tuple2od<I>> list)
    • value

      protected double value​(org.ranksys.core.util.tuples.Tuple2od<I> iv)
    • nov

      protected abstract double nov​(org.ranksys.core.util.tuples.Tuple2od<I> iv)
      Returns the novelty score of an item.
      Parameters:
      iv - item-relevance pair
      Returns:
      the novelty of the item