Types of Recommendation Systems
Types of Recommendation Systems
Data Analysis
Data Visualization
Machine Learning
ML Projects
Deep Learning
NLP
Computer Vision
Artificial Intelligence
Table of Content
Content-Based Filtering
Collaborative Filtering
Conclusion
Content-Based Filtering
Item profile
Represents the characteristics or attributes of an item such as a course or
article. These attributes include metadata like title, description,etc. The item
profile is used to match the item’s features with user preferences for
personalized recommendations.
Cosine Similarity
Cosine Similarity(a,b) =
A
∣
∣∣a∣∣∣∣b∣∣
a.b
TF-IDF Weighting
TF(t,d) =
N
.
O
Totalno.oftind
No.ofoccurencestind
Corpus
G
(
IDF(t,D)=log(
∣(dεD:tεd)∣
∣D∣
+1)
Where,
∣
(
∣(dεD:tεd)∣
)
=
TF−IDF(t,d,D)=TF(t,d)∗IDF(t,D)
TF-IDF weighting gives more weight to terms that are common in one
document but uncommon throughout the corpus, emphasizing the
document’s distinguishing characteristics. This weighting scheme is
especially useful in content-based filtering because it captures the unique
features of items and allows for accurate textual recommendations.
Collaborative Filtering
Items based
On their similarity to those with which the user has previously interacted. By
calculating item similarities based on user interactions, it recommends items
that are similar to those that the user has previously positively rated or liked.
Embedding Layers:
Embedding layers
Convert categorical variables (such as user and item IDs) into dense, low-
dimensional vectors known as embeddings. These embeddings store
semantic information about users and items, including their latent features
and relationships. Throughout training, the model learns to iteratively update
these embeddings in order to reduce prediction errors and improve
recommendation accuracy.
MLPs
Activation functions
(such as
ReLU
), can capture intricate patterns and dependencies in data, allowing for more
expressive representations of user-item interactions
During training, NCF optimizes embedding layers and MLPs with SGD or the
Adam optimizer, effectively modeling user preferences and item
characteristics. NCF captures complex interactions using neural networks,
embedding layers, and MLPs, resulting in improved recommendation
accuracy and performance across multiple domains.