- Collaborative Filtering is a technique or a method to predict a user's taste and find the items that a user might prefer on the basis of information collected from a various other users having similar tastes or preferences. it takes into consideration the basic fact that if person X and person Y have a certain reaction for some items then thay might have the same opinion for other items too.
Here, we look for the users who have rated various items in the same way and then find the rating of the missing item with the help of these users.
Here, we explore the relationship between the pair of items (the user who bought Y, also bought Z). We find the misiong rating with the help of the ratings given to the other items by the user.
-
Find every pair of movies that were watched by the same person.
-
Measure the similarity of their ratings across all users who watched both.
-
Sort by movie, then by similarity strength.
Cosine similarity is described mathematically as the division between the dot product of vectors and the product of the Euclidean norms or magnitude of each vector.
Cosine similarity is a value bound by a constrained range of 0 and 1.
The similarity measurement is a measure of the cosine of the angle between the two non-zero vectors A and B.
Suppose the angle between the two vectors were 90 degrees. In that case, the cosine similarity will have a value of 0. This means that the two vectors are orthogonal or perpendicular to each other.
As the cosine similarity measurement gets closer to 1, then the angle between the two vectors A and B is smaller. The images below depict this more clearly.