O'Reilly logo

Building Recommendation Engines by Suresh Kumar Gorakala

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building user-based collaborative filtering with recommenderlab

Run the following code in order to load the recommenderlab library and data into the R environment:

library(recommenderlab) 
data("Jester5k") 

Let's look at the sample rating data of the first six users on the first 10 jokes. Run the following command:

head(as(Jester5k,"matrix")[,1:10]) 
Building user-based collaborative filtering with recommenderlab

We have looked at exploring the data in the previous section so we will get directly to building a user-based collaborative recommender system.

This section is divided as follows:

  • Building a base recommender model for benchmarking by splitting the data into 80% training data and 20% test data.
  • Evaluating the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required