Collaborative filtering
Collaborative filtering mainly includes user-based collaborative filtering and commodity-based collaborative filtering
1. User-based collaborative filtering
a. Find other users closest to the user, find items they have watched/bought but the current user has not watched/bought, and score according to the distance weighted.
b. Find the items with the highest score to recommend
2. Item-based collaborative filtering
According to the user's behavior on the product/content, the similarity between items is calculated, and the closest item to the current item is found for recommendation.
3. Similarity/Distance Metrics
- Euclidean distance
- Jaccard similarity
Narrow Jaccard similarity, calculate the similarity between two sets, the "value" of the element is 0 or 1 - cosine similarity
- Pearson similarity