In this section, we are going to discuss how to build a product recommendation system using Python. More specifically, we will be learning how to implement a collaborative filtering algorithm in Python using a machine learning library, scikit-learn. For those readers who would like to use R instead of Python for this exercise, you can skip to the next section. We will start this section by analyzing some e-commerce business data and then discuss the two approaches to building a product recommendation system with collaborative filtering.
For this exercise, we will be using one of the publicly available datasets from the UCI Machine Learning Repository, which can be found at this link: http://archive.ics.uci.edu/ml/datasets/online+retail#. You can follow this link and download the data in Microsoft Excel format, in a file named...