org.mymedialite.data
Interface IPosOnlyFeedback

All Superinterfaces:
IDataSet
All Known Implementing Classes:
PosOnlyFeedback

public interface IPosOnlyFeedback
extends IDataSet

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

userMatrix

IBooleanMatrix userMatrix()
By-user access, users are stored in the rows, items in the culumns.


itemMatrix

IBooleanMatrix itemMatrix()
By-item access, items are stored in the rows, users in the culumns.


add

void add(int userId,
         int itemId)
Add a user-item event to the data structure.

Parameters:
userId - the user ID
itemId - the item ID

getItemMatrixCopy

IBooleanMatrix getItemMatrixCopy()
Get a copy of the item matrix

Returns:
a copy of the item matrix

getUserMatrixCopy

IBooleanMatrix getUserMatrixCopy()
Get a copy of the user matrix

Returns:
a copy of the user matrix

remove

void remove(int userId,
            int itemId)
Remove a user-item event from the data structure.

Parameters:
userId - the user ID
itemId - the item ID

transpose

IPosOnlyFeedback transpose()
Get the transpose of the dataset (users and items exchanged)

Returns:
the transpose of the dataset