Making recommendations

  • Not every user rate every movie and it’s important for the system to know which users have rated which movies
  • one possible way to approach the problem is to look at the movies that users have not rated

Using per-item feature

Cost function

Notation

  • if user has rated movie (0 otherwise)
  • = rating given by user on movie (if defined)
  • = parameters for user
  • = feature vector for movie
  • For user and movie , predict rating:
  • = number of movies rated by user
  • To learn :
    • = number of features
  • To learn parameters for all users:

Collaborative filtering algorithm

Gradient Descent