Interface for implicit, positive-only user feedback. More...
Public Member Functions | |
void | Add (int user_id, int item_id) |
Add a user-item event to the data structure. | |
int | Overlap (IPosOnlyFeedback s) |
Compute the number of overlapping events in two feedback datasets. | |
void | Remove (int user_id, int item_id) |
Remove a user-item event from the data structure. | |
void | RemoveItem (int item_id) |
Remove all feedback about a given item. | |
void | RemoveUser (int user_id) |
Remove all feedback by a given user. | |
Properties | |
ICollection< int > | AllItems [get] |
all items mentioned at least once | |
ICollection< int > | AllUsers [get] |
all users that have given feedback | |
int | Count [get] |
the number of feedback events | |
IBooleanMatrix | ItemMatrix [get] |
By-item access, items are stored in the rows, users in the culumns. | |
int | MaxItemID [get] |
the maximum item ID | |
int | MaxUserID [get] |
the maximum user ID | |
IBooleanMatrix | UserMatrix [get] |
By-user access, users are stored in the rows, items in the culumns. |
Interface for implicit, positive-only user feedback.
void Add | ( | int | user_id, | |
int | item_id | |||
) |
Add a user-item event to the data structure.
user_id | the user ID | |
item_id | the item ID |
Implemented in PosOnlyFeedback< T >.
int Overlap | ( | IPosOnlyFeedback | s | ) |
Compute the number of overlapping events in two feedback datasets.
s | the feedback dataset to compare to |
Implemented in PosOnlyFeedback< T >.
void Remove | ( | int | user_id, | |
int | item_id | |||
) |
Remove a user-item event from the data structure.
user_id | the user ID | |
item_id | the item ID |
Implemented in PosOnlyFeedback< T >.
void RemoveItem | ( | int | item_id | ) |
Remove all feedback about a given item.
item_id | the item ID |
Implemented in PosOnlyFeedback< T >.
void RemoveUser | ( | int | user_id | ) |
Remove all feedback by a given user.
user_id | the user id |
Implemented in PosOnlyFeedback< T >.
ICollection<int> AllItems [get] |
all items mentioned at least once
Implemented in PosOnlyFeedback< T >.
ICollection<int> AllUsers [get] |
all users that have given feedback
Implemented in PosOnlyFeedback< T >.
int Count [get] |
the number of feedback events
Implemented in PosOnlyFeedback< T >.
IBooleanMatrix ItemMatrix [get] |
By-item access, items are stored in the rows, users in the culumns.
Implemented in PosOnlyFeedback< T >.
int MaxItemID [get] |
the maximum item ID
Implemented in PosOnlyFeedback< T >.
int MaxUserID [get] |
the maximum user ID
Implemented in PosOnlyFeedback< T >.
IBooleanMatrix UserMatrix [get] |
By-user access, users are stored in the rows, items in the culumns.
Implemented in PosOnlyFeedback< T >.