/Movie_Recommender_System

Python movie recommender system implementing simple collaborative filtering algorithm

Primary LanguagePython

Django Movie Recommender System

This repository is based on python Django web framework. Build movie recommender system by implementing collaborative filtering algorithm. There are several main functionalities:

  • 1.Recommending user favorites movies.
  • 2.Recommending watched movies from people who favorites same movies.
  • 3.Searching target movie.

Getting Started

To setup on your local machine:

  1. Install Anaconda with Python >= 3.5.(64bit), create a conda environment and activate it.
  2. Prepare python dependency
pip install -r requirements.txt
  1. Prepare movie Dataset and configure MySQL databases: use MovieLens dataset,to import rating and links csv files into MySQL database, and configure it in MRS/settings.py
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': [database name],
        'USER': 'root',
        'PASSWORD': [password],
        'HOST': 'localhost',
        'PORT': '3306',
    }
}
  1. Migrate
python manage.py makemigrations
python manage.py migrate
  1. Ensure RabbitMQ and Redis server running in machine and run Celery to process asynchronous tasks
celery -A MRS worker -P gevent -c 100 -l info
  1. Run django server
python manage.py runserver