User and item lists
User and item lists are trivial: One entity ID per line
Example
5 22 26 29 35 36 45
Command-line tools
The item recommendation tool supports this file format.
Files with this format are expected by the following arguments:
--candidate-items=FILE
--test-users=FILE
Classes
Reading
The class for reading in this kind of file is
MyMediaLite.IO.NumberFile
.
When reading from such a file, do not forget to map the user/item IDs to their internal representation:
test_users = new List(user_mapping.ToInternalID(NumberFile.ReadLongs(file))));