HybridRecommender

0th

Percentile

Create a Hybrid Recommender

Combines several trained recommender algorithms into a hybrid recommender.

Usage
HybridRecommender(..., weights = NULL)
Arguments
...
objects of class 'Recommender'.
weights
weights for the recommenders. The recommenders are equally weighted by default.
Value

An object of class 'Recommender'.

See Also

Recommender

Aliases
  • HybridRecommender
Examples
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")
Documentation reproduced from package recommenderlab, version 0.2-1, License: GPL-2

Community examples

Looks like there are no examples yet.