Description Usage Arguments Details Value See Also Examples
Creates and combines recommendations using several recommender algorithms.
1 |
... |
objects of class 'Recommender'. |
weights |
weights for the recommenders. The recommenders are equally weighted by default. |
The hybrid recommender is initialized with a set of Recommender objects trained on the same training set (at least the training sets need to have the same items in the same order).
For creating recommendations (predict
), each recommender algorithm
is used to create ratings. The individual ratings are combined using
weighted sum. Weights can be specified in weights
.
An object of class 'Recommender'.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | data("MovieLense")
MovieLense100 <- MovieLense[rowCounts(MovieLense) >100,]
train <- MovieLense100[1:100]
test <- MovieLense100[101:103]
## mix popular movies with a random recommendations for diversity and
## rerecommend some movies the user liked.
recom <- HybridRecommender(
Recommender(train, method = "POPULAR"),
Recommender(train, method = "RANDOM"),
Recommender(train, method = "RERECOMMEND"),
weights = c(.6, .1, .3)
)
recom
getModel(recom)
as(predict(recom, test), "list")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.