O'Reilly logo

R Data Analysis Cookbook - Second Edition by Kuntal Ganguly

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

There's more...

The recommenderlab package provides options for the recommendation algorithm and we can display the models applicable to the realRatingMatrix using recommenderRegistry$get_entries:

> recommender_models <- recommenderRegistry$get_entries(dataType = "realRatingMatrix") 
> names(recommender_models)

Visualizing Rating Matrix: Rating matrix can be visualized by building a heat map whose colors represent the ratings. Each row of the matrix corresponds to a user, each column to a movie, and each cell to its rating. Perform the following steps to build heatmap using image function of recommenderlab package:

  1. Build a heatmap of MovieLense ...

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