COURSES
MBAData Science & AnalyticsDoctorate Software & Tech AI | ML MarketingManagement
Professional Certificate Programme in HR Management and AnalyticsPost Graduate Certificate in Product ManagementExecutive Post Graduate Program in Healthcare ManagementExecutive PG Programme in Human Resource ManagementMBA in International Finance (integrated with ACCA, UK)Global Master Certificate in Integrated Supply Chain ManagementAdvanced General Management ProgramManagement EssentialsLeadership and Management in New Age BusinessProduct Management Online Certificate ProgramStrategic Human Resources Leadership Cornell Certificate ProgramHuman Resources Management Certificate Program for Indian ExecutivesGlobal Professional Certificate in Effective Leadership and ManagementCSM® Certification TrainingCSPO® Certification TrainingLeading SAFe® 5.1 Training (SAFe® Agilist Certification)SAFe® 5.1 POPM CertificationSAFe® 5.1 Scrum Master Certification (SSM)Implementing SAFe® 5.1 with SPC CertificationSAFe® 5 Release Train Engineer (RTE) CertificationPMP® Certification TrainingPRINCE2® Foundation and Practitioner Certification
Law
Job Linked
Bootcamps
Study Abroad
Master of Business Administration (90 ECTS)Master in International Management (120 ECTS)Bachelor of Business Administration (180 ECTS)B.Sc. Computer Science (180 ECTS)MS in Data AnalyticsMS in Project ManagementMS in Information TechnologyMasters Degree in Data Analytics and VisualizationMasters Degree in Artificial IntelligenceMBS in Entrepreneurship and MarketingMSc in Data AnalyticsMS in Data AnalyticsMS in Computer ScienceMaster of Science in Business AnalyticsMaster of Business Administration MS in Data ScienceMS in Information TechnologyMaster of Business AdministrationMS in Applied Data ScienceMaster of Business Administration | STEMMS in Data AnalyticsM.Sc. Data Science (60 ECTS)Master of Business AdministrationMS in Information Technology and Administrative Management MS in Computer Science Master of Business Administration MBA General Management-90 ECTSMSc International Business ManagementMS Data Science Master of Business Administration MSc Business Intelligence and Data ScienceMS Data Analytics MS in Management Information SystemsMSc International Business and ManagementMS Engineering ManagementMS in Machine Learning EngineeringMS in Engineering ManagementMSc Data EngineeringMSc Artificial Intelligence EngineeringMPS in InformaticsMPS in Applied Machine IntelligenceMS in Project ManagementMPS in AnalyticsMS in Project ManagementMS in Organizational LeadershipMPS in Analytics - NEU CanadaMBA with specializationMPS in Informatics - NEU Canada Master in Business AdministrationMS in Digital Marketing and MediaMS in Project ManagementMSc Sustainable Tourism and Event ManagementMSc in Circular Economy and Sustainable InnovationMSc in Impact Finance and Fintech ManagementMS Computer ScienceMS in Applied StatisticsMaster in Computer Information SystemsMBA in Technology, Innovation and EntrepreneurshipMSc Data Science with Work PlacementMSc Global Business Management with Work Placement MBA with Work PlacementMS in Robotics and Autonomous SystemsMS in Civil EngineeringMS in Internet of ThingsMSc International Logistics and Supply Chain ManagementMBA- Business InformaticsMSc International ManagementMBA in Strategic Data Driven ManagementMSc Digital MarketingMBA Business and MarketingMaster of Business AdministrationMSc Digital MarketingMSc in Sustainable Luxury and Creative IndustriesMSc in Sustainable Global Supply Chain ManagementMSc in International Corporate FinanceMSc Digital Business Analytics MSc in International HospitalityMSc Luxury and Innovation ManagementMaster of Business Administration-International Business ManagementMS in Computer EngineeringMS in Industrial and Systems EngineeringMSc International Business ManagementMaster in ManagementMSc MarketingMSc Business ManagementMSc Global Supply Chain ManagementMS in Information Systems and Technology with Business Intelligence and Analytics ConcentrationMSc Corporate FinanceMSc Data Analytics for BusinessMaster of Business AdministrationBachelors in International ManagementMS Computer Science with Artificial Intelligence and Machine Learning ConcentrationMaster of Business AdministrationMaster of Business AdministrationMSc in International FinanceMSc in International Management and Global LeadershipMaster of Business AdministrationBachelor of Business
For College Students

Recommender System in Python - I (optional) with Ecommerce Data Science

$$/$$

Having understood the basics of recommendation systems, you will now implement a recommendation algorithm in Python. You can use the MovieLens dataset for running this algorithm. MovieLens is a non-commercial, personalised movie recommendations platform. It helps you find movies that you will like. When you log into the platform, it asks you to rate movies to build a custom taste profile, after which MovieLens recommends other movies for you to watch. Thus, as you would have guessed, it uses collaborative filtering to generate recommendations. In this notebook, you will implement user-based recommendation and item-based recommendation. 


You can download the Python code for this lab from the link below. 

$$/$$

As you saw, first we convert the 'ratings' data into a tabular form using a pivot table to get 'userId' as rows and 'movieId' as columns. We will use this table to find the user-based recommendation and item-based recommendation by finding the correlation. Next, we will form a dummy train and a dummy test, which will be used during the prediction phase. Let's see the values in dummy train and dummy test.

$$/$$

As you saw, the dummy train contains '0' wherever the user has already rated. This is done because you do not want to recommend the movies that have already been rated by the user. Marking those values '0' will retain only the movies that are not rated by the user in the 'df_movie_features' table. Later, you will see how to use 'dummy_train'. Similarly, we want to evaluate our model only on the movies rated by the user. So, 'dummy_test' is the opposite of 'dummy_train' in terms of 0's and 1's.  

 

You also saw that adjusted cosine similarity is used for user-user similarity, as different users can have different behaviour. A user will rate in the range of 1-3 star for the worst to best movie, whereas a different user will rate in the range of 1-5 star for the same set of movies. To bring both the users on par, the ratings are normalised using adjusted cosine similarity. Now, let's find the correlation for user-based similarity.

$$/$$

As you can see, the training data set has 862 users and 2,500 movies. So, the correlation matrix for user-based similarity will be of the shape 862 x 862. This matrix indicates to what extent the users are related to other users. Multiplying correlation matrix with 'movie_feature' (rating by the user) of shape 862 x 2500 will give the user-based recommender matrix of shape 862 x 2500. This matrix will contain the user-based rating of all the movies, including the movies not rated by the user, based on the correlation with other users. Thus, you can find the recommendation of a user by filtering out the rating given by that user (using 'dummy_train').