Recommenderlab package
It will be very useful for the subsequent sections to get an overview of the recommenderlab
package. Let us quickly look at the S4
objects inside the package and see how we can use them to build collaborative filtering projects.
A high-level overview is shown in the following figure:
The ratingMatrix
is an abstract object, used to store and manipulate the ratings matrix. The term abstract is from object-oriented programming. ratingMatrix
defines the interfaces to develop a user ratingsMatrix
, but does not implement them. There are two concrete implementations of this object one for the real-valued matrix and the other one for the binary matrix. The Recommender
class is used to store the recommendation models. It takes as an input a ratingsMatrix
object and other parameters and builds the required recommender model.
The predict
function can produce recommendations for unseen/unknown data (where we don't know the recommendation) using the Recommender
model.
Proceed to install...