Interface UpdateableRecommender<U,​I>

Type Parameters:
U - Type of the users.
I - Type of the items.
All Superinterfaces:
es.uam.eps.ir.ranksys.rec.Recommender<U,​I>
All Known Subinterfaces:
FastUpdateableRecommender<U,​I>
All Known Implementing Classes:
AbstractFastUpdateableRecommender, FastUpdateableRankingRecommender, MFGraphUpdateableRecommender, MFUpdateableRecommender, UpdateableBM25, UpdateableUBkNN, UserFastRankingUpdateableRecommender

public interface UpdateableRecommender<U,​I>
extends es.uam.eps.ir.ranksys.rec.Recommender<U,​I>
Interface for defining recommendation algorithms which can be updated over time.
  • Method Summary

    Modifier and Type Method Description
    void update​(java.util.stream.Stream<org.jooq.lambda.tuple.Tuple3<U,​I,​java.lang.Double>> tuples)
    Updates the values of the recommender, considering that the following preferences have been added.
    void update​(U u, I i, double val)
    Updates the values of the recommender, considering that a new rating has been added.
    void updateAddItem​(I i)
    Updates the values of the recommender, considering that a new item has been added.
    void updateAddUser​(U u)
    Updates the values of the recommender, considering that a new user has been added.
    void updateDelete​(java.util.stream.Stream<org.jooq.lambda.tuple.Tuple3<U,​I,​java.lang.Double>> tuples)
    Updates the values of the recommender, considering that the following preferences have been removed.
    void updateDelete​(U u, I i, double val)
    Updates the values of the recommender, considering that a rating has been deleted.

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

    getRecommendation, getRecommendation, getRecommendation, getRecommendation, getRecommendation
  • Method Details

    • update

      void update​(java.util.stream.Stream<org.jooq.lambda.tuple.Tuple3<U,​I,​java.lang.Double>> tuples)
      Updates the values of the recommender, considering that the following preferences have been added.
      Parameters:
      tuples - the preferences which have been added.
    • updateDelete

      void updateDelete​(java.util.stream.Stream<org.jooq.lambda.tuple.Tuple3<U,​I,​java.lang.Double>> tuples)
      Updates the values of the recommender, considering that the following preferences have been removed.
      Parameters:
      tuples - the preferences which have been removed.
    • updateAddUser

      void updateAddUser​(U u)
      Updates the values of the recommender, considering that a new user has been added.
      Parameters:
      u - the user which has been added.
    • updateAddItem

      void updateAddItem​(I i)
      Updates the values of the recommender, considering that a new item has been added.
      Parameters:
      i - the item which has been added.
    • update

      void update​(U u, I i, double val)
      Updates the values of the recommender, considering that a new rating has been added.
      Parameters:
      u - the user.
      i - the item
      val - the value.
    • updateDelete

      void updateDelete​(U u, I i, double val)
      Updates the values of the recommender, considering that a rating has been deleted.
      Parameters:
      u - the user.
      i - the item.
      val - the value.