Skip to content

BBimie/Movie-Recommender-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Movie-Recommendation-System

A Content-Based Recommender System that recommends movies similar to the movie entered by the user and shows basic information about the recommended movies.

Built With

  • Flask
  • HTML & CSS
  • JavaScript
  • Python
  • Tmdbv3API (TMDBSIMPLE)

Data

TMDB 5000 Movies

How Does it Work?

The recommender system uses a metric called the similarity score to measure how similar movies are to one another. The similarity score is a value that ranges between 0 - 1, the higher the score, the more similar the two movies are. It is the measure of similarity between two text items.

I used the built-in cosine similarity metric in scikit-learn.

Technical Documentation

I have written a simple step by step documentation on this app which you can read here.

How to run the project on your local machine

  1. Clone this git repository

    git clone https://github.com/BBimie/Movie-Recommender-System.git

  2. Create a virtual environment in your project folder

    cd -filepath-

    virtualenv venv

  3. Activate virual environment

    Mac source venv/bin/activate

    Windows 10 source venv/Scripts/activate

  4. Install python packages by running the following command

    pip install -r requirements.txt

  5. Edit the app.py (lines 16 & 17) to add your TMDB API key

  6. Launch the app

    python app.py

How to get the API key

Create an account in https://www.themoviedb.org/ and login click the "API" link from the left hand sidebar within your account settings page. You will see the API key in your API sidebar once your request is approved.

Deployment

Take a look at the deployed app here