Skip to content

alinakhay/Flask_Example_6

 
 

Repository files navigation

Judgmental Eye: A Movie Rating App

####The Project

The Judgmental Eye is a movie ratings application where users can log in and rate movies they have seen.

It uses machine learning to predict how a user will rate a movie they have not yet seen.

####Table of Contents

####Technologies Used

The Judgmental Eye was written using Python, Flask, HTML, CSS, Twitter Bootstrap, SQLAlchemy, and Postgres.

It also uses machine learning (a Pearson correlation) and the MovieLens dataset, which contains 100,000 ratings of 1,700 movies from 1,000 users.

Landing page

####How It Works

Users can create accounts, log in, and begin rating movies. Movies a user has rated are displayed in My Movie Profile. Users have the ability to rate movies they have not yet seen, and to update their ratings of movies they have seen.

If a user has not yet rated a movie, the Judgmental Eye algorithm uses machine learning to predict how the user will rate it, based on other ratings. The more movies a user rates, the better the Judgmental Eye can predict which movies he/she will or will not enjoy.

####Product Screenshots

View your movie profile to see movies you have rated

Movie profile

The Judgmental Eye will predict how you will rate a movie you have not yet rated

Rating prediction

The Judgmental Eye will also judge you on your predictions

Positive judgment Negative judgment

View other users' movie profiles

View other users

####Try It Yourself!

#####Environment

  1. Clone the repository:
$ git clone https://github.com/kkschick/JudgmentalEye.git
  1. Create and activate a virtual environment in the same directory:
$ pip install virtualenv
$ virtualenv env
$ . env/bin/activate 
  1. Install the required packages using pip:
(env)$ pip install -r requirements.txt

#####Database

  1. To run the Postgres server, download and run postgres.app, and follow the instructions to set up Postgres on your machine—instructions for Mac.

  2. Create the database in PostgreSQL:

$ psql
# CREATE DATABASE movies;
  1. Still in your virtual environment, create the database tables and seed the standards table:
(env)$ python model.py
(env)$ python seed.py
  1. Run the app:
(env)$ python judgment.py
  1. Point your browser to:
http://localhost:5000/

About

Flask app that uses machine learning to predict how you will rate a movie

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 48.4%
  • HTML 31.8%
  • CSS 13.9%
  • Perl 3.1%
  • Shell 2.8%