This project contains code supporting the blog at url => https://humansandai.wordpress.com/2017/12/26/recommendation-engine-overview-for-dummies/
- item_item_sim_recommender.py => This stand-alone python file contains the code to a recoomendation engine built using the Item-Item similarity technique
- user_user_sim_recommender.py => This stand-alone python file contains the code to a recoomendation engine built using the User-User similarity technique
- items.csv => This is a training data file which contains the unique item_id and the item_name of all items in the inventory.
- shopping_cart.csv => This is a training data file which contains the user_id and the list of items purchased by that user in a single transaction.
- Import the cloned project into PyCharm. PyCharm will automatically install the required dependencies from the requirements.txt file
- Right and click on 'Run' option on the item_item_sim_recommender.py file from the project window.
- Python 2.x and pip should already be installed on the machine.
- Install the requirements from the requirements.txt file, suing the command
pip install -r requirements.txt
You might have to use sudo, if the user does not have enough permissions to install packages.
- Execute the python file using the command
python item_item_sim_recommender.py