Skip to content

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

Notifications You must be signed in to change notification settings

lee-ma/movie-review-classifier

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published