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

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

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 More...
 
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 More...
 

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 
)
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
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 
)
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
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: