[% title='MyMediaLite: User and item lists' prefix='../' %] [% INCLUDE header %]

[% title %]

[% INCLUDE menu %] [% INCLUDE infobox %]

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:

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

Writing

Writing this file format is trivial, so there is no specific class for that in MyMediaLite.
[% INCLUDE footer %]