lee-ma / movie-review-classifier

Webapp that classifies a movie review as positive or negative based on a model trained by Logistic Regression using Stochastic Gradient Descent

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Movie Review Classifier

This is a Flask webapp that utilizes a model trained via Logistic Regression using Stochastic Gradient Descent. The feature matrices are obtained using HashingVectorizer. The model is continually updated every time the server is restarted based on data collected from user feedback on whether their review was correctly classified.

This project was built based on the book: Python Machine Learning 2nd Edition by Sebastian Raschka and Vahid Mirjalili.

To run locally

  1. Clone this repo
  2. cd /local/path/to/this/repo
  3. pip3 install -r requirements.txt
  4. python3 app.py
  5. Go to localhost:5000 in your browser

From there, enter your movie reviews and see if it's classified correctly!

About

Webapp that classifies a movie review as positive or negative based on a model trained by Logistic Regression using Stochastic Gradient Descent


Languages

Language:Python 57.4%Language:HTML 28.9%Language:CSS 13.8%