Recommender Systems
Recommender Systems
Systems
Manual Curation, Recommending What’s Popular, User-Based
Collaborative Filtering, Item Based Collaborative Filtering, Matrix
Factorization.
• Recommender systems are tools designed to suggest items to users
based on various types of data.
• Commonly, they are used in platforms like Netflix, Amazon, and
Twitter to recommend movies, products, or users to follow,
respectively.
• Recommendations
Manual Curation
• Before the digital age, recommendations were often given by experts
such as librarians, who suggested books based on a person's interests
and previous reads.
• This personal touch ensured that recommendations were tailored and
relevant.
Recommending What’s Popular
• One straightforward approach to making recommendations is to
suggest popular items.
• This method is simple and can be effective, especially for new users
without much activity history.
Calculate Popular Interests:
• Use a Counter to count the occurrences of each interest across all
users.
Suggest Popular Interests:
• Create a function to suggest the most popular interests that a user is
not already interested in:
User-Based Collaborative Filtering
• User-based collaborative filtering makes recommendations by
identifying users who have similar interests and suggesting items
those similar users like.
1. Cosine Similarity Function:
2. Creating Interest Vectors:
• First, compile a list of unique interests:
3. User Interest Vector:
• Create a vector for each user where each element is 1 if the user has
that interest, otherwise 0:
4. User Interest Matrix:
• Generate the user interest matrix:
5. Compute User Similarities:
Calculate pairwise cosine similarities between users:
Most Similar Users:
• Function to find the most similar users:
7. Generating Recommendations:
• Suggest new interests based on similar users’ interests:
• Curse of Dimensionality: In high-dimensional spaces, most vectors
are far apart, which can reduce the effectiveness of similarity
measures.
• Scalability: User-based collaborative filtering can struggle with large
datasets.
• Advantages: Simple to implement, effective for small datasets.
• Limitations: Less effective for large datasets, susceptible to sparse
data problems.
Matrix Factorization
• Matrix factorization is a technique used to uncover latent features
from observed data.
• In the context of recommender systems, it is often used to
decompose a user-item interaction matrix into two lower-dimensional
matrices: one representing users and the other representing items.
• GO THROUGH THE TEXT BOOK ALSO