java.lang.Object
es.uam.eps.ir.ranksys.rec.AbstractRecommender<U,​I>
es.uam.eps.ir.ranksys.rec.fast.AbstractFastRecommender<U,​I>
es.uam.eps.ir.ranksys.rec.fast.FastRankingRecommender<U,​U>
Type Parameters:
U - type of the users.
All Implemented Interfaces:
es.uam.eps.ir.ranksys.core.index.ItemIndex<U>, es.uam.eps.ir.ranksys.core.index.UserIndex<U>, es.uam.eps.ir.ranksys.fast.index.FastItemIndex<U>, es.uam.eps.ir.ranksys.fast.index.FastUserIndex<U>, es.uam.eps.ir.ranksys.rec.fast.FastRecommender<U,​U>, es.uam.eps.ir.ranksys.rec.Recommender<U,​U>

public class DPH<U>
extends TerrierRecommender<U>
Class that applies the DPH Divergence from Randomness model as a contact recommendation algorithm.

Reference: G. Amati. Frequentist and Bayesian Approach to Information Retrieval. In: Proceedings of the 28th European Conference on Information Retrieval (ECIR 2006).pp. 13–24. No. 3936 in LNCS, Springer (2006)

See Also:
DPH
  • Field Summary

    Fields inherited from class es.uam.eps.ir.relison.links.recommendation.UserFastRankingRecommender

    graph

    Fields inherited from class es.uam.eps.ir.ranksys.rec.fast.AbstractFastRecommender

    iIndex, uIndex
  • Constructor Summary

    Constructors 
    Constructor Description
    DPH​(FastGraph<U> graph, EdgeOrientation uSel, EdgeOrientation vSel)
    Constructor.
    DPH​(FastGraph<U> graph, EdgeOrientation uSel, EdgeOrientation vSel, TerrierStructure structure)
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    protected java.util.Optional<java.lang.Double> getCValue()
    Obtains the name of the c value for the model.
    protected java.lang.String getModel()
    Obtains the name of the weighting model from Terrier.

    Methods inherited from class es.uam.eps.ir.relison.links.recommendation.algorithms.standalone.ir.TerrierRecommender

    getScoresMap

    Methods inherited from class es.uam.eps.ir.relison.links.recommendation.UserFastRankingRecommender

    getFreq, getFreq, getGraph

    Methods inherited from class es.uam.eps.ir.ranksys.rec.fast.FastRankingRecommender

    getRecommendation

    Methods inherited from class es.uam.eps.ir.ranksys.rec.fast.AbstractFastRecommender

    getRecommendation, getRecommendation, getRecommendation, getRecommendation, getRecommendation, getRecommendation, getRecommendation, iidx2item, item2iidx, numItems, numUsers, uidx2user, user2uidx

    Methods inherited from class es.uam.eps.ir.ranksys.rec.AbstractRecommender

    getRecommendation, getRecommendation

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface es.uam.eps.ir.ranksys.fast.index.FastItemIndex

    containsItem, getAllIidx, getAllItems, iidx2item, iidx2item, item2iidx, item2iidx

    Methods inherited from interface es.uam.eps.ir.ranksys.fast.index.FastUserIndex

    containsUser, getAllUidx, getAllUsers, uidx2user, uidx2user, user2uidx, user2uidx

    Methods inherited from interface es.uam.eps.ir.ranksys.rec.Recommender

    getRecommendation, getRecommendation
  • Constructor Details

    • DPH

      public DPH​(FastGraph<U> graph, EdgeOrientation uSel, EdgeOrientation vSel)
      Constructor.
      Parameters:
      graph - the training graph.
      uSel - orientation selection for the target user.
      vSel - orientation selection for the candidate user.
    • DPH

      public DPH​(FastGraph<U> graph, EdgeOrientation uSel, EdgeOrientation vSel, TerrierStructure structure)
      Constructor.
      Parameters:
      graph - the training graph.
      uSel - orientation selection for the target user.
      vSel - orientation selection for the candidate user.
      structure - Terrier basic structures for the algorithm.
  • Method Details

    • getModel

      protected java.lang.String getModel()
      Description copied from class: TerrierRecommender
      Obtains the name of the weighting model from Terrier.
      Specified by:
      getModel in class TerrierRecommender<U>
      Returns:
      the name of the weighting model.
    • getCValue

      protected java.util.Optional<java.lang.Double> getCValue()
      Description copied from class: TerrierRecommender
      Obtains the name of the c value for the model. If it is null, it will take just the default parameter.
      Specified by:
      getCValue in class TerrierRecommender<U>
      Returns:
      the value if it exists, or an empty object otherwise.