Class ContactRecommendationRelevanceModel<U>

java.lang.Object
es.uam.eps.ir.ranksys.core.model.UserModel<U>
es.uam.eps.ir.ranksys.metrics.rel.RelevanceModel<U,​I>
es.uam.eps.ir.ranksys.metrics.rel.IdealRelevanceModel<U,​U>
es.uam.eps.ir.relison.links.recommendation.metrics.accuracy.ContactRecommendationRelevanceModel<U>
Type Parameters:
U - type of the users.

public class ContactRecommendationRelevanceModel<U>
extends es.uam.eps.ir.ranksys.metrics.rel.IdealRelevanceModel<U,​U>
Relevance model for the specific contact recommendation task. Only those links appearing in a given test network are judged as relevant.
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    private class  ContactRecommendationRelevanceModel.UserContactRecommendationRelevanceModel
    The relevance model for a single user in the network.

    Nested classes/interfaces inherited from class es.uam.eps.ir.ranksys.metrics.rel.IdealRelevanceModel

    es.uam.eps.ir.ranksys.metrics.rel.IdealRelevanceModel.UserIdealRelevanceModel<U extends java.lang.Object,​I extends java.lang.Object>

    Nested classes/interfaces inherited from class es.uam.eps.ir.ranksys.metrics.rel.RelevanceModel

    es.uam.eps.ir.ranksys.metrics.rel.RelevanceModel.UserRelevanceModel<U extends java.lang.Object,​I extends java.lang.Object>

    Nested classes/interfaces inherited from class es.uam.eps.ir.ranksys.core.model.UserModel

    es.uam.eps.ir.ranksys.core.model.UserModel.Model<U extends java.lang.Object>
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private Graph<U> testGraph
    The test graph containing the relevant links.
  • Constructor Summary

    Constructors 
    Constructor Description
    ContactRecommendationRelevanceModel​(boolean caching, Graph<U> testGraph)
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    protected es.uam.eps.ir.ranksys.metrics.rel.IdealRelevanceModel.UserIdealRelevanceModel<U,​U> get​(U user)  

    Methods inherited from class es.uam.eps.ir.ranksys.metrics.rel.IdealRelevanceModel

    getModel

    Methods inherited from class es.uam.eps.ir.ranksys.core.model.UserModel

    initialize

    Methods inherited from class java.lang.Object

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

    • testGraph

      private final Graph<U> testGraph
      The test graph containing the relevant links.
  • Constructor Details

    • ContactRecommendationRelevanceModel

      public ContactRecommendationRelevanceModel​(boolean caching, Graph<U> testGraph)
      Constructor.
      Parameters:
      caching - true if we want to cache the user relevance models.
      testGraph - the test graph containing the relevance edges.
  • Method Details

    • get

      protected es.uam.eps.ir.ranksys.metrics.rel.IdealRelevanceModel.UserIdealRelevanceModel<U,​U> get​(U user)
      Specified by:
      get in class es.uam.eps.ir.ranksys.metrics.rel.IdealRelevanceModel<U,​U>