PosOnlyFeedback Class Reference

Data structure for implicit, positive-only user feedback. More...

List of all members.

Public Member Functions

void Add (int user_id, int item_id)
 Add a user-item event to the data structure.
int Overlap (PosOnlyFeedback s)
 Compute the number of overlapping events in two feedback datasets.
 PosOnlyFeedback ()
 Create a PosOnlyFeedback object.
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
SparseBooleanMatrix 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
SparseBooleanMatrix UserMatrix [get, set]
 By-user access, users are stored in the rows, items in the culumns.

Detailed Description

Data structure for implicit, positive-only user feedback.

This data structure supports online updates.


Constructor & Destructor Documentation

PosOnlyFeedback (  ) 

Create a PosOnlyFeedback object.


Member Function Documentation

void Add ( int  user_id,
int  item_id 
)

Add a user-item event to the data structure.

Parameters:
user_id the user ID
item_id the item ID
int Overlap ( PosOnlyFeedback  s  ) 

Compute the number of overlapping events in two feedback datasets.

Parameters:
s the feedback dataset to compare to
Returns:
the number of overlapping events, i.e. events that have the same user and item ID
void Remove ( int  user_id,
int  item_id 
)

Remove a user-item event from the data structure.

Parameters:
user_id the user ID
item_id the item ID
void RemoveItem ( int  item_id  ) 

Remove all feedback about a given item.

Parameters:
item_id the item ID
void RemoveUser ( int  user_id  ) 

Remove all feedback by a given user.

Parameters:
user_id the user id

Property Documentation

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

SparseBooleanMatrix 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

SparseBooleanMatrix UserMatrix [get, set]

By-user access, users are stored in the rows, items in the culumns.


The documentation for this class was generated from the following file:
Generated on Tue May 24 12:44:16 2011 for MyMediaLite by  doxygen 1.6.3