Code Monkey home page Code Monkey logo

bioscope-recommendation-api's Introduction

BioScope-Recommendation-API

An open movie recommendation API that has been built using Python and deployed on Heroku. This API is based on the Content-Based Filtering technique used in recommendation systems where we recommend items to a user based on the input item's attributes. We have more than 6000 movies present in our dataset and our recommendation algorithm works accordingly.

Use the BioScope API whilst building your website or app and recommend movies to your users accordingly.

Source Datasets:-

File Description:-

recommendation.py

Here, we have our logic written for the recommendation algorithm. Consists a total of 5 functions

get_data():-

  • get_data() is used to fetch the data about the movies and return the dataset with it's attributes as the result for further preprocessing.

combine_data():-

  • combine_data() drops the columns not required for feature extraction and then combines the cast and genres column,finally returning the combine column as the result of this function.

transform_data():-

  • transform_data() takes the value returned by combine_data() and the plot column from get_data() and applies CountVectorizer and TfidfVectorizer respectively and calculates the Cosine values.

recommend_movies():-

  • recommend_movies() takes four parameters i.e movie_name and return values of get_data(), combine_data(), transform_data as input and returns the top 20 movies similar to our input movie.

results():-

  • result() takes a movie's title as input and returns the top 20 recommendations using the recommend_movies() function.

app.py

  • The Flask app where we use the recommendation.py as a module and return the results in JSON format.

requirements.txt

  • This has all the dependencies required to deploy our application on Heroku

Procfile

  • A Procfile is a file which describes how to run your application.

Folder

Dataset

  • Contains the dataset we have used to build our recommendation system.

bioscope-recommendation-api's People

Contributors

dd2405 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bioscope-recommendation-api's Issues

Heroku Deployment

Not able to deploy the API on heroku. shows error code=H10 status=503 app crashes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.