|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPosOnlyFeedback
Interface for implicit, positive-only user feedback.
Method Summary | |
---|---|
void |
add(int userId,
int itemId)
Add a user-item event to the data structure. |
IBooleanMatrix |
getItemMatrixCopy()
Get a copy of the item matrix |
IBooleanMatrix |
getUserMatrixCopy()
Get a copy of the user matrix |
IBooleanMatrix |
itemMatrix()
By-item access, items are stored in the rows, users in the culumns. |
void |
remove(int userId,
int itemId)
Remove a user-item event from the data structure. |
IPosOnlyFeedback |
transpose()
Get the transpose of the dataset (users and items exchanged) |
IBooleanMatrix |
userMatrix()
By-user access, users are stored in the rows, items in the culumns. |
Methods inherited from interface org.mymedialite.data.IDataSet |
---|
allItems, allUsers, buildItemIndices, buildRandomIndex, buildUserIndices, byItem, byUser, getIndex, getIndex, getItems, getUsers, items, maxItemID, maxUserID, randomIndex, removeItem, removeUser, size, tryGetIndex, tryGetIndex, users |
Method Detail |
---|
IBooleanMatrix userMatrix()
IBooleanMatrix itemMatrix()
void add(int userId, int itemId)
userId
- the user IDitemId
- the item IDIBooleanMatrix getItemMatrixCopy()
IBooleanMatrix getUserMatrixCopy()
void remove(int userId, int itemId)
userId
- the user IDitemId
- the item IDIPosOnlyFeedback transpose()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |