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 ...

Get R Data Analysis Cookbook - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.