Giter Club home page Giter Club logo

coffee-rating-prediction's Introduction

โ˜• Coffee rating prediction

Streamlit App

The objective of this project is to be able to predict how highly rated a coffee would be on Coffee Review, based upon some meta-data about the selected coffee.

Downloading the dataset

The dataset can be download from Kaggle. You can either download this:

  • Directly from the website
  • Using the Kaggle API as follows:
    !kaggle datasets download -d schmoyote/coffee-reviews-dataset -f simplified_coffee.csv -p data

Training the model

To train a linear regression model, run the following script:

training/train.py

Generating predictions using the model

The model is served within a separate Docker container. This is hosted using AWS Lambda.

To build the server locally, run the following command:

docker build server -t coffee-prediction-server:latest

To start the server for the first time, use the following command:

docker run -it --network coffee-rating-prediction_devcontainer_default --hostname coffee_server --name coffee-prediction-server coffee-prediction-server:latest

To restart the server, run the following:

docker start -i coffee-prediction-server

Then run the following to test the server:

python test_predict.py

Using the interactive dashboard

To investigate the predicted rating of a given coffee, you can use the interactive streamlit dashboard. This is hosted on Streamlit Cloud.

You can also launch the dashboard locally by running the following command:

streamlit run dashboard.py

coffee-rating-prediction's People

Contributors

alxhslm avatar dependabot[bot] avatar

Watchers

 avatar  avatar

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.