MyMediaLite  3.08
Static Public Member Functions
MovieLensRatingData Class Reference

Class that offers static methods for reading in MovieLens 1M and 10M rating data. More...

List of all members.

Static Public Member Functions

static ITimedRatings Read (string filename, IMapping user_mapping=null, IMapping item_mapping=null, TestRatingFileFormat test_rating_format=TestRatingFileFormat.WITH_RATINGS)
 Read in rating data from a file.
static ITimedRatings Read (TextReader reader, IMapping user_mapping=null, IMapping item_mapping=null, TestRatingFileFormat test_rating_format=TestRatingFileFormat.WITH_RATINGS)
 Read in rating data from a TextReader.

Detailed Description

Class that offers static methods for reading in MovieLens 1M and 10M rating data.

See http://www.grouplens.org/node/73#attachments and http://recsyswiki.com/wiki/MovieLens


Member Function Documentation

static ITimedRatings Read ( string  filename,
IMapping  user_mapping = null,
IMapping  item_mapping = null,
TestRatingFileFormat  test_rating_format = TestRatingFileFormat.WITH_RATINGS 
) [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
test_rating_formatwhether there is a rating column in each line or not
Returns:
the rating data
static ITimedRatings Read ( TextReader  reader,
IMapping  user_mapping = null,
IMapping  item_mapping = null,
TestRatingFileFormat  test_rating_format = TestRatingFileFormat.WITH_RATINGS 
) [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
test_rating_formatwhether there is a rating column in each line or not
Returns:
the rating data

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