Skip to content
Build Deep Neural Network model in Keras and deploy a REST API to production with Flask on Google App Engine
Jupyter Notebook Python
Branch: master
Clone or download
Latest commit ac1c2ae Oct 25, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets Update models Oct 22, 2019
price_prediction
.gitignore Add model & data preprocessor Oct 22, 2019
LICENSE Initial commit Oct 21, 2019
README.md
app.py
app.yaml Update requirements Oct 22, 2019
requirements.txt
test_api.py Update models Oct 22, 2019

README.md

Zero to Production

It is not recommended to deploy your production models as shown here. This is just an end-to-end example to get started quickly.

Read the complete guide

This guide shows you how to:

  • build a Deep Neural Network that predicts Airbnb prices in NYC (using scikit-learn and Keras)
  • build a REST API that predicts prices based on the model (using Flask and gunicorn)
  • deploy the model to production on Google App Engine

Quick start

Requirements:

Clone this repository:

git clone git@github.com:curiousily/End-to-End-Machine-Learning-with-Keras.git
cd End-to-End-Machine-Learning-with-Keras

Install libraries:

pip install -r requirements.txt

Start local server

flask run

Make predictions

curl -d '{"neighbourhood_group": "Brooklyn", "latitude": 40.64749, "longitude": -73.97237, "room_type": "Private room", "minimum_nights": 1, "number_of_reviews": 9, "calculated_host_listings_count": 6, "availability_365": 365}' -H "Content-Type: application/json" -X POST http://localhost:5000

Deploy to Google App Engine

gcloud app deploy

Read the complete guide

You can’t perform that action at this time.