On this page, we show how to first set up recommenders in Ruby, and then use them to make predictions.
To use the examples on this page,
download the MovieLens 100k ratings dataset from the
GroupLens Research website and unzip it.
Of course you can also use your own data ;-)
IronRuby
[% INCLUDE link link='ironruby' %] lets you run Ruby programs on the .NET platform. It also lets you use .NET libraries (.dlls) like MyMediaLite.
To run a program with IronRuby, type ir program.rb in the command line, where program.rb is your program.
You may also enter just ir, so that you can use IronRuby's REPL interactively.
Rating Prediction
[% INSERT 'rating_prediction.rb' %]
Item Prediction from Positive-Only Feedback
[% INSERT 'item_recommendation.rb' %]