|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IIncrementalRatingPredictor
Interface for rating predictors which support incremental training
Method Summary | |
---|---|
void |
addRating(int userId,
int itemId,
double rating)
Add a new rating and perform incremental training |
boolean |
getUpdateItems()
true if items shall be updated when doing incremental updates. |
boolean |
getUpdateUsers()
true if users shall be updated when doing incremental updates. |
void |
removeItem(int itemId)
Remove an item from the recommender model, and delete all ratings of this item It is up to the recommender implementor whether there should be model updates after this action, both options are valid. |
void |
removeRating(int userId,
int itemId)
Remove an existing rating and perform "incremental" training |
void |
removeUser(int userId)
Remove a user from the recommender model, and delete all their ratings It is up to the recommender implementor whether there should be model updates after this action, both options are valid. |
void |
setUpdateItems(boolean updateItems)
Set to true if items shall be updated when doing incremental updates. |
void |
setUpdateUsers(boolean updateUsers)
Set to true if users shall be updated when doing incremental updates. |
void |
updateRating(int userId,
int itemId,
double rating)
Update an existing rating and perform incremental training |
Methods inherited from interface org.mymedialite.ratingprediction.IRatingPredictor |
---|
getMaxRating, getMinRating, setMaxRating, setMinRating |
Methods inherited from interface org.mymedialite.IRecommender |
---|
canPredict, loadModel, predict, saveModel, toString, train |
Method Detail |
---|
void addRating(int userId, int itemId, double rating)
userId
- the ID of the user who performed the ratingitemId
- the ID of the rated itemrating
- the rating valuevoid updateRating(int userId, int itemId, double rating) throws java.lang.IllegalArgumentException
userId
- the ID of the user who performed the ratingitemId
- the ID of the rated itemrating
- the rating value
java.lang.IllegalArgumentException
void removeRating(int userId, int itemId)
userId
- the ID of the user who performed the ratingitemId
- the ID of the rated itemvoid removeUser(int userId)
userId
- the ID of the user to be removedvoid removeItem(int itemId)
itemId
- the ID of the user to be removedboolean getUpdateUsers()
void setUpdateUsers(boolean updateUsers)
boolean getUpdateItems()
void setUpdateItems(boolean updateItems)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |