MyMediaLite  3.03
Static Public Member Functions
RatingData Class Reference

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

List of all members.

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.
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.
static IRatings Read (IDataReader reader, IMapping user_mapping, IMapping item_mapping)
 Read in rating data from an IDataReader, e.g. a database via DbDataReader.

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 
) [inline, static]

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 
) [inline, static]

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 
) [inline, static]

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: