Viewers often waste hours scrolling through hundreds, if not thousands, of anime episodes before finding anything they enjoy. In order to build a better streaming environment that promotes income and increases the time spent on a website, businesses must be given advice based on their likes and wants.
We use machine learning to analyse the information in order to construct a recommendation system that can assist someone in deciding what to watch next. The dataset is downloaded fron Kaggle. The dataset contains two CSV files anime.csv and ratings.csvLink to dataset : Download
Using an anime dataset, to create a recommendation system based on two famous algorithms:This algorithm recommends products which are similar to the ones that a user has liked in the past. The content of each item is represented as a set of descriptors or terms, typically the words that occur in a document.A content based recommender works with data that the user provides, either explicitly (rating) or implicitly (clicking on a link). Based on that data, a user profile is generated, which is then used to make suggestions to the user. As the user provides more inputs or takes actions on the recommendations, the engine becomes more and more accurate
Here, there are various approaches to solve this problem and I have applied them keeping in mind their usage in theindustry. They are broadly based on 2 category: 1) User Based: Takes user_id to get recommendation 2) Item Based: Give recommendation based on the search We use cosine similarity to find the relation
Cosine similarity metric measures the cosine of the angle between two n-dimensional vectors projected in a multi-dimensional space. The Cosine similarity of two documents will range from 0 to 1.
Collaborative filtering is a technique that can filter out items that a user might like on the basis of reactions by similar users. It works by searching a large group of people and finding a smaller set of users with tastes similar to a particular user. 1) User Based collaborative filtering- This algorithm first finds the similarity score between users. Based on this similarity score, it then picks out the most similar users and recommends products which these similar users have liked or bought previously. 2) Item Based collaborative filtering: In this algorithm, we compute the similarity between each pair of items. So in our case we will find the similarity between each anime pair and based on that, we will recommend similar animes which are liked by the users in the past.

