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.
-
Method Details
-
update
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
Updates the values of the recommender, considering that a new user has been added.- Parameters:
u
- the user which has been added.
-
updateAddItem
Updates the values of the recommender, considering that a new item has been added.- Parameters:
i
- the item which has been added.
-
update
Updates the values of the recommender, considering that a new rating has been added.- Parameters:
u
- the user.i
- the itemval
- the value.
-
updateDelete
Updates the values of the recommender, considering that a rating has been deleted.- Parameters:
u
- the user.i
- the item.val
- the value.
-