Class ItemNoveltyMetric<U,​I>

java.lang.Object
es.uam.eps.ir.ranksys.metrics.AbstractSystemMetric<U,​I>
es.uam.eps.ir.relison.links.recommendation.metrics.novdiv.ItemNoveltyMetric<U,​I>
Type Parameters:
U - type of the users
I - type of the items
All Implemented Interfaces:
es.uam.eps.ir.ranksys.metrics.SystemMetric<U,​I>
Direct Known Subclasses:
LTN, Unexpectedness

public abstract class ItemNoveltyMetric<U,​I>
extends es.uam.eps.ir.ranksys.metrics.AbstractSystemMetric<U,​I>
Item novelty metric.
References:
  1. S. Vargas. Novelty and diversity evaluation and enhancement in Recommender Systems. PhD Thesis (2015)
  2. S. Vargas and P. Castells. Rank and relevance in novelty and diversity for * Recommender Systems. RecSys 2011.
  3. J. Sanz-Cruzado and P. Castells. Beyond Accuracy in Link Prediction. SoMePeaS 2019.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private int cutoff
    The cutoff for each recommendation.
    private java.util.List<es.uam.eps.ir.ranksys.core.Recommendation<U,​I>> list
    The list of recommendations.
    protected es.uam.eps.ir.ranksys.novdiv.itemnovelty.ItemNovelty<U,​I> novelty
    item novelty model.
  • Constructor Summary

    Constructors 
    Constructor Description
    ItemNoveltyMetric​(int cutoff, es.uam.eps.ir.ranksys.novdiv.itemnovelty.ItemNovelty<U,​I> novelty)
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    void add​(es.uam.eps.ir.ranksys.core.Recommendation<U,​I> recommendation)  
    void combine​(es.uam.eps.ir.ranksys.metrics.SystemMetric<U,​I> systemMetric)  
    double evaluate()  
    void reset()  

    Methods inherited from class java.lang.Object

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

    • cutoff

      private final int cutoff
      The cutoff for each recommendation.
    • list

      private java.util.List<es.uam.eps.ir.ranksys.core.Recommendation<U,​I>> list
      The list of recommendations.
    • novelty

      protected final es.uam.eps.ir.ranksys.novdiv.itemnovelty.ItemNovelty<U,​I> novelty
      item novelty model.
  • Constructor Details

    • ItemNoveltyMetric

      public ItemNoveltyMetric​(int cutoff, es.uam.eps.ir.ranksys.novdiv.itemnovelty.ItemNovelty<U,​I> novelty)
      Constructor.
      Parameters:
      cutoff - maximum size of the recommendation list that is evaluated
      novelty - novelty model
  • Method Details

    • evaluate

      public double evaluate()
    • add

      public void add​(es.uam.eps.ir.ranksys.core.Recommendation<U,​I> recommendation)
    • combine

      public void combine​(es.uam.eps.ir.ranksys.metrics.SystemMetric<U,​I> systemMetric)
    • reset

      public void reset()