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 voidupdate(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.voidupdate(U u, I i, double val)Updates the values of the recommender, considering that a new rating has been added.voidupdateAddItem(I i)Updates the values of the recommender, considering that a new item has been added.voidupdateAddUser(U u)Updates the values of the recommender, considering that a new user has been added.voidupdateDelete(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.voidupdateDelete(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.
-