Non-personalized Recommendation in rrecsys

The included baseline recommendation methods are the global mean rating (Global Average), item’s mean rating (Item Average), user's mean rating (User Average), as well as an the Most Popular Item Recommendation method that recommends to all users the items that are most popular.

To train a model for the rating prediction task we use the following commands:

data("ml100k")
d <- defineData(ml100k)
e <- evalModel(d, folds = 2)

globAv <- evalPred(e, alg = "globalaverage")
globAv

# Algorithm names might be matched on the registry partially.
itemAv <- evalPred(e,  "itemAver")
itemAv
userAv <- evalPred(e,  "useraverage")
userAv

Please notice that the baseline recommenders do not require any other argument.

The returned object are of type algAverageClass.

To get more details about the slots read the reference manual.



Try the rrecsys package in your browser

Any scripts or data that you put into this service are public.

rrecsys documentation built on June 10, 2019, 1:02 a.m.