Class that offers methods for reading in rating data
More...
Class that offers methods for reading in rating data
static IRatings Read |
( |
string |
filename, |
|
|
IMapping |
user_mapping = null , |
|
|
IMapping |
item_mapping = null , |
|
|
bool |
ignore_first_line = false |
|
) |
| |
|
inlinestatic |
Read in rating data from a file
- Parameters
-
filename | the name of the file to read from |
user_mapping | mapping object for user IDs |
item_mapping | mapping object for item IDs |
ignore_first_line | if 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 |
|
) |
| |
|
inlinestatic |
Read in rating data from a TextReader
- Parameters
-
reader | the TextReader to read from |
user_mapping | mapping object for user IDs |
item_mapping | mapping object for item IDs |
ignore_first_line | if true, ignore the first line |
- Returns
- the rating data
Read in rating data from an IDataReader, e.g. a database via DbDataReader
- Parameters
-
reader | the IDataReader to read from |
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: