Machine - Learning (Recommendation System)
Machine - Learning (Recommendation System)
May 1, 2023
Academic City University College, Agbogba Haatso, Ghana.
Recommendation System
INTRODUCTION
1
These systems have the ability to predict user preferences
and provide tailored recommendations, improving user
experience and increasing engagement.
We will learn about the various types of recommendation
systems, how they work, applications, and the algorithms used
to build them.
2
TYPES OF RECOMMENDATION SYSTEMS
3
ADVANTAGES
4
DISADVANTAGES
5
TYPES OF RECOMMENDATION SYSTEMS
6
USER-BASED COLLABORATIVE FILTERING
7
ADVANTAGES
8
DISADVANTAGES
• Can lead to the cold start problem, where new users have
no interaction history, and the system cannot recommend
anything.
• The system relies on user data, which can be biased or
incomplete.
9
ITEM-BASED COLLABORATIVE FILTERING:
10
ADVANTAGES
11
DISADVANTAGES
12
TYPES OF RECOMMENDATION SYSTEMS
13
ADVANTAGES
14
DISADVANTAGES
15
ALGORITHMS USED IN RECOMMENDATION SYSTEMS
16
ALGORITHMS USED IN RECOMMENDATION SYSTEMS CON’T
17
ALGORITHMS USED IN RECOMMENDATION SYSTEMS
Matrix Factorization:
This algorithm uses a matrix factorization technique to
predict the preferences of a user for an item. It decomposes
the user-item interaction matrix into two matrices: a user
matrix and an item matrix.
These matrices represent the users and items in a lower
dimensional space, where the dimensions represent the latent
features that are not directly observable.
The algorithm then uses these matrices to predict the
preferences of a user for an item.
18
ALGORITHMS USED IN RECOMMENDATION SYSTEMS
19
ALGORITHMS USED IN RECOMMENDATION
SYSTEMS CON’T
Cosine Similarity:
This algorithm measures the similarity between two items by
calculating the cosine of the angle between their feature
vectors.
The feature vectors represent the attributes of the items, and
the cosine similarity measures the overlap between the
attributes.
20
ALGORITHMS USED IN RECOMMENDATION SYSTEMS CON’T
21
EVALUATION OF RECOMMENDATION SYSTEMS
Data Preprocessing
The first step in building a recommendation system is to
preprocess the data.
This involves cleaning the data, removing any duplicates or
missing values, and transforming the data into a suitable
format for the recommendation algorithm.
23
Data Exploration The next step is to explore the data to
gain insights into user preferences and item attributes.
This involves calculating summary statistics, visualizing the
data, and identifying any trends or patterns in the data.
24
Splitting Data The data is then split into training and
testing sets. The training set is used to build the
recommendation system, while the testing set is used to
evaluate the performance of the recommendation system.
25
Building the Recommendation System: The next step is
to build the recommendation system. This involves selecting
an appropriate recommendation algorithm, such as
collaborative filtering or content-based filtering, and applying
it to the training data. The resulting model is used to make
recommendations for the test data.
26
Evaluating the Recommendation System:
The final step is to evaluate the performance of the
recommendation system using evaluation metrics such as
precision, recall, and F1-score.
The recommendation system can be refined and optimized
based on the evaluation results.
27
Deploying the Recommendation System: Once the
recommendation system is built and evaluated, it needs to be
deployed in the production environment.
This involves integrating the recommendation system with the
existing infrastructure and ensuring that it is scalable and
efficient.
28
Continuous Monitoring and Improvement:
The final step is to continuously monitor and improve the
recommendation system based on user feedback and changing
business requirements.
This involves collecting feedback from users, analyzing
performance metrics, and updating the recommendation
algorithm as needed.
29
MATHEMATICS INVOLVED IN RECOMMENDATION SYSTEMS
30
MATHEMATICS INVOLVED IN RECOMMENDATION SYSTEMS
31
TF-IDF(t, d) = TF(t, d) × IDF(t)
N
IDF(t) = log
nt
where N is the total number of documents and nt is the
number of documents that contain the term t.
32
EXAMPLES OF DAY-TO-DAY ACTIVITIES WHERE RECOMMEN-
DATION SYSTEMS ARE USED:
34
END OF PRESENTATION
THANK YOU