[% title='MyMediaLite: How to use a recommender in C#' prefix='../' %] [% INCLUDE header %]

[% title %]

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

Complex examples

The two command line programs shipped with MyMediaLite also demonstrate how to use the recommenders. You may have a look at their source code to see how they use the MyMediaLite recommenders:

Simpler examples

In the following, we show how to first set up recommenders in C#, and then use them to make predictions.

To use the following examples, download the MovieLens 100k ratings dataset from the GroupLens Research website and unzip it.
Of course you can also use your own data ;-)

Rating Prediction

[% INSERT 'rating_prediction.cs' %]

Item Prediction from Positive-Only Feedback

[% INSERT 'item_recommendation.cs' %]

[% INCLUDE footer %]