RatingPrediction Class Reference
Class that offers methods for reading in rating data.
More...
List of all members.
Static Public Member Functions |
static IRatings | Read (IDataReader reader, double min_rating, double max_rating, EntityMapping user_mapping, EntityMapping item_mapping) |
| Read in rating data from an IDataReader, e.g. a database via DbDataReader.
|
static IRatings | Read (TextReader reader, double min_rating, double max_rating, IEntityMapping user_mapping, IEntityMapping item_mapping) |
| Read in rating data from a TextReader.
|
static IRatings | Read (string filename, double min_rating, double max_rating, IEntityMapping user_mapping, IEntityMapping item_mapping) |
| Read in rating data from a file.
|
Detailed Description
Class that offers methods for reading in rating data.
Member Function Documentation
Read in rating data from an IDataReader, e.g. a database via DbDataReader.
- Parameters:
-
| reader | the IDataReader to read from |
| min_rating | the lowest possible rating value, warn on out of range ratings |
| max_rating | the highest possible rating value, warn on out of range ratings |
| user_mapping | mapping object for user IDs |
| item_mapping | mapping object for item IDs |
- Returns:
- the rating data
Read in rating data from a TextReader.
- Parameters:
-
| reader | the TextReader to read from |
| min_rating | the lowest possible rating value, warn on out of range ratings |
| max_rating | the highest possible rating value, warn on out of range ratings |
| user_mapping | mapping object for user IDs |
| item_mapping | mapping object for item IDs |
- Returns:
- the rating data
Read in rating data from a file.
- Parameters:
-
| filename | the name of the file to read from, "-" if STDIN |
| min_rating | the lowest possible rating value, warn on out of range ratings |
| max_rating | the highest possible rating value, warn on out of range ratings |
| user_mapping | mapping object for user IDs |
| item_mapping | mapping object for item IDs |
- Returns:
- the rating data
The documentation for this class was generated from the following file: