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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.