May 2019
Intermediate to advanced
664 pages
15h 41m
English
We are going to use functions from an R library called recommenderlab to build recommendation engine projects in this chapter. Irrespective of the category of recommendation system we implement, there are some prerequisites that the dataset needs to satisfy to be able to apply the recommenderlab functions. The prebuilt recommenderlab functions for collaborative filtering expects realRatingMatrix to be supplied as input. In our case, the Jester5k dataset is already in this format, therefore, we could directly use this matrix to apply the recommenderlab functions.
In case, we were to have our data as a R DataFrame and if we intend to convert into realRatingMatrix, the following steps may be performed: