-
Notifications
You must be signed in to change notification settings - Fork 1
A collaborative filtering algorithm
Mateus de Assis Silva edited this page Jun 1, 2020
·
2 revisions
The steps to estimate the rating are:
- Define active user (subscript a) and his/her movie (subscript j) to be rated.
- Initiate estimation as the mean of active user votes
- Get all users' ID from the training set
- For each user, do:
- Get his/her votes (set of logs)
- If he/she voted in the movie defined above, do:
- Get Movies both users (active one and training one) voted in and, if this set is not empty:
- calculate
w(a,i)
and the difference between the user vote on the iterating movie and his/her average.
- calculate
- Get Movies both users (active one and training one) voted in and, if this set is not empty:
- If there is correlations:
- Compute normalizing factor k.
- If there are correlations and differences:
- Add weighting factor to the estimate of active user rate on movie.
- Return estimation