6CS4 ML Unit-5
6CS4 ML Unit-5
Machine Learning
(6CS4-02)
Unit-V
• Companies like Netflix, Amazon, etc. use recommender systems to help their users to identify
the correct product or movies for them.
• The recommender system deals with a large volume of information present by filtering the most
important information based on the data provided by a user and other factors that take care of the
user’s preference and interest. It finds out the match between user and item and imputes the
similarities between users and items for recommendation.
• Both the users and the services provided have benefited from these kinds of systems. The quality
and decision-making process has also improved through these kinds of systems.
Why the Recommendation system?
•Benefits users in finding items of their interest.
•Help item providers in delivering their items to the right user.
•Identity products that are most relevant to users.
•Personalized content.
•Help websites to improve user engagement.
What can be Recommended?
There are many different things that can be recommended by the system
like movies, books, news, articles, jobs, advertisements, etc. Netflix uses a
recommender system to recommend movies & web-series to its users.
Similarly, YouTube recommends different videos. There are many
examples of recommender systems that are widely used today.
How do User and Item matching is done?
In order to understand how the item is recommended and how the matching is
done, let us a look at the images below;
Perfect matching may not be recommended
Example
•Google News: News filtered by trending and most popular news.
•YouTube: Trending videos.
2. Classification Model
The model that uses features of both products as well as users to predict whether a user
will like a product or not.
The output can be either 0 or 1. If the user likes it then 1 and vice-versa.
• There are different scenarios where we need to check about the similarities,
so there are different metrics to be used. For computing the similarity
between numeric data, Euclidean distance is used, for textual data, cosine
similarity is calculated and for categorical data, Jaccard similarity is
computed.
Merits
•There is no requirement for much of the user’s data.
•We just need item data that enable us to start giving recommendations to
users.
•A content-based recommender engine does not depend on the user’s data, so
even if a new user comes in, we can recommend the user as long as we have
the user data to build his profile.
•It does not suffer from a cold start.
Demerits
•Items data should be in good volume.
•Features should be available to compute the similarity.
4. Collaborative Filtering
• It is considered to be one of the very smart recommender systems that
work on the similarity between different users and also items that are
widely used as an e-commerce website and also online movie websites. It
checks about the taste of similar users and does recommendations.
• The similarity is not restricted to the taste of the user moreover there can
be consideration of similarity between different items also. The system will
give more efficient recommendations if we have a large volume of
information about users and items.
This is the way collaborative filtering works. Mainly, there are two
approaches used in collaborative filtering stated below;
a) User-based nearest-neighbor collaborative filtering
Figure shows user-user collaborative filtering where there are three users A, B
and C respectively and their interest in fruit. The system finds out the users who
have the same sort of taste of purchasing products and similarity between users is
computed based upon the purchase behavior. User A and User C are similar
because they have purchased similar products.
b)Item-based nearest-neighbour collaborative filtering
Figure shows user X, Y, and Z respectively. The system checks the items that
are similar to the items the user bought. The similarity between different items
is computed based on the items and not the users for the prediction. Users X
and Y both purchased items A and B so they are found to have similar tastes.
Limitations
Perceptron is a function that maps its input “x,” which is multiplied with the
learned weight coefficient; an output value ”f(x)”is generated. In the equation
given above:
Feed-Forward ANN
Feedback ANN
Queries!!