Data structure 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. | |
| PosOnlyFeedback (T user_matrix) | |
| Create a PosOnlyFeedback object from an existing user-item matrix. | |
| PosOnlyFeedback () | |
| Default constructor. | |
| 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, set] |
| the maximum item ID | |
| int | MaxUserID [get, set] |
| the maximum user ID | |
| IBooleanMatrix | UserMatrix [get, set] |
| By-user access, users are stored in the rows, items in the culumns. | |
Data structure for implicit, positive-only user feedback.
This data structure supports incremental updates if supported by T.
| T | : | IBooleanMatrix | |
| T | : | new() |
| PosOnlyFeedback | ( | ) |
Default constructor.
| PosOnlyFeedback | ( | T | user_matrix | ) |
Create a PosOnlyFeedback object from an existing user-item matrix.
| user_matrix | the user-item matrix |
| 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 |
Implements IPosOnlyFeedback.
| int Overlap | ( | IPosOnlyFeedback< T > | s | ) |
Compute the number of overlapping events in two feedback datasets.
| s | the feedback dataset to compare to |
Implements IPosOnlyFeedback.
| 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 |
Implements IPosOnlyFeedback.
| void RemoveItem | ( | int | item_id | ) |
Remove all feedback about a given item.
| item_id | the item ID |
Implements IPosOnlyFeedback.
| void RemoveUser | ( | int | user_id | ) |
ICollection<int> AllItems [get] |
all items mentioned at least once
Implements IPosOnlyFeedback.
ICollection<int> AllUsers [get] |
all users that have given feedback
Implements IPosOnlyFeedback.
int Count [get] |
the number of feedback events
Implements IPosOnlyFeedback.
IBooleanMatrix ItemMatrix [get] |
By-item access, items are stored in the rows, users in the culumns.
Implements IPosOnlyFeedback.
int MaxItemID [get, set] |
the maximum item ID
Implements IPosOnlyFeedback.
int MaxUserID [get, set] |
the maximum user ID
Implements IPosOnlyFeedback.
IBooleanMatrix UserMatrix [get, set] |
By-user access, users are stored in the rows, items in the culumns.
Implements IPosOnlyFeedback.
1.6.3