MyMediaLite  3.11
Static Public Member Functions | List of all members
RatingData Class Reference

Class that offers methods for reading in rating data More...

Static Public Member Functions

static IRatings Read (string filename, IMapping user_mapping=null, IMapping item_mapping=null, bool ignore_first_line=false)
 Read in rating data from a file More...
 
static IRatings Read (TextReader reader, IMapping user_mapping=null, IMapping item_mapping=null, bool ignore_first_line=false)
 Read in rating data from a TextReader More...
 
static IRatings Read (IDataReader reader, IMapping user_mapping, IMapping item_mapping)
 Read in rating data from an IDataReader, e.g. a database via DbDataReader More...
 

Detailed Description

Class that offers methods for reading in rating data

Member Function Documentation

static IRatings Read ( string  filename,
IMapping  user_mapping = null,
IMapping  item_mapping = null,
bool  ignore_first_line = false 
)
inlinestatic

Read in rating data from a file

Parameters
filenamethe name of the file to read from
user_mappingmapping object for user IDs
item_mappingmapping object for item IDs
ignore_first_lineif true, ignore the first line
Returns
the rating data
static IRatings Read ( TextReader  reader,
IMapping  user_mapping = null,
IMapping  item_mapping = null,
bool  ignore_first_line = false 
)
inlinestatic

Read in rating data from a TextReader

Parameters
readerthe TextReader to read from
user_mappingmapping object for user IDs
item_mappingmapping object for item IDs
ignore_first_lineif true, ignore the first line
Returns
the rating data
static IRatings Read ( IDataReader  reader,
IMapping  user_mapping,
IMapping  item_mapping 
)
inlinestatic

Read in rating data from an IDataReader, e.g. a database via DbDataReader

Parameters
readerthe IDataReader to read from
user_mappingmapping object for user IDs
item_mappingmapping object for item IDs
Returns
the rating data

The documentation for this class was generated from the following file: