Fork me on GitHub

MyMediaLite: Positive-only feedback files

News

MyMediaLite 3.11 has been released.


Positive-only feedback files

Positive-only feedback files have at least two columns: the user ID and the item ID. Additional columns are ignored.

Examples

Tab-separated columns (.tsv)

5951    50
5951    223
5951    260
5951    293
5951    356
5951    364
5951    457

Whitespace-separated columns

5951 50
5951 223
5951 260
5951 293
5951 356
5951 364
5951 457

Comma-separated columns (.csv)

5951,50
5951,223
5951,260
5951,293
5951,356
5951,364
5951,457

Command-line tools

Item recommendation

The item recommendation tool supports this file format.

Classes

Reading

The class for reading in this kind of file is MyMediaLite.IO.ItemData.

If you have rating data, and do not want to keep all the ratings, but only the ones above a certain threshold, you can use MyMediaLite.IO.ItemDataRatingThreshold.

Writing

Writing the file format described is trivial, thus there is no code in MyMediaLite for that particular task. If you want to write out item recommendations, have a look at our page about item recommendation files.

ContactFollow us on Twitter