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

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

Static Public Member Functions

static IRatings Read (string filename, IMapping user_mapping=null, IMapping item_mapping=null, RatingType rating_type=RatingType.FLOAT, TestRatingFileFormat test_rating_format=TestRatingFileFormat.WITH_RATINGS, bool ignore_first_line=false)
 Read in static rating data from a file More...
 
static IRatings Read (TextReader reader, int size, IMapping user_mapping=null, IMapping item_mapping=null, RatingType rating_type=RatingType.FLOAT, TestRatingFileFormat test_rating_format=TestRatingFileFormat.WITH_RATINGS, bool ignore_first_line=false)
 Read in static rating data from a TextReader More...
 

Detailed Description

Class that offers methods for reading in static rating data

Member Function Documentation

static IRatings Read ( string  filename,
IMapping  user_mapping = null,
IMapping  item_mapping = null,
RatingType  rating_type = RatingType.FLOAT,
TestRatingFileFormat  test_rating_format = TestRatingFileFormat.WITH_RATINGS,
bool  ignore_first_line = false 
)
inlinestatic

Read in static 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
rating_typethe data type to be used for storing the ratings
test_rating_formatwhether there is a rating column in each line or not
ignore_first_lineif true, ignore the first line
Returns
the rating data
static IRatings Read ( TextReader  reader,
int  size,
IMapping  user_mapping = null,
IMapping  item_mapping = null,
RatingType  rating_type = RatingType.FLOAT,
TestRatingFileFormat  test_rating_format = TestRatingFileFormat.WITH_RATINGS,
bool  ignore_first_line = false 
)
inlinestatic

Read in static rating data from a TextReader

Parameters
readerthe TextReader to read from
sizethe number of ratings in the file
user_mappingmapping object for user IDs
item_mappingmapping object for item IDs
rating_typethe data type to be used for storing the ratings
test_rating_formatwhether there is a rating column in each line or not
ignore_first_lineif true, ignore the first line
Returns
the rating data

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