neighborhood-based collaborative filtering is a specific collaborative filtering algorithm to recommender system. It predict sthe degree of preference for an item
For example, both users
Process
Cost function
(Algorithm)
The algorithm can learn features
numbering | total number | |
---|---|---|
item | ||
user | ||
feature |
This cost function can be minimized using gradient descent
Mean normalization
Why transforming utility matrix?
If there is a new user that hasn’t rated any item, cost function above will predict that user will rate all items
, which doesn’t make much sense. Here comes mean normalization:
- Average rating for each item (
), arranged them in a matrix - Create a new utility matrix: subtract
from each user rating for an item.
- For user
, on item the algorithm will predict a rating:
w^{(j)}\cdot x^{(i)} +b^{(j)}+\textcolor{red}{\mu_{i}}