Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Baby Weight Prediction Example

Disclaimer: This is not an official Google product.

This is an example application demonstrating how the deployed model can be used to make online predictions from web applications.




You are supposed to have deployed the trained model for online predictions by following the instruction in the Cloud Datalab notebook. You need to use the same project to run this application.

Do this first

In this section you will start your Google Cloud Shell and clone the application code repository to it.

  1. Open the Cloud Console

  2. Click the Google Cloud Shell icon in the top-right and wait for your shell to open:

  1. Clone the lab repository in your cloud shell, then cd into that dir:
$ git clone
Cloning into 'training-data-analyst'...

$ cd training-data-analyst/blogs/babyweight/application

Customize the model name

If you have deployed the model with the name different from 'babyweight', open app.yaml with a text editor and replace the model name accordingly.

  MODEL_NAME: 'babyweight'

Deploy the application

$ pip install -r requirements.txt -t lib
$ gcloud app create
$ gcloud app deploy

By executing these commands on the Cloud Shell, the project id is automatically applied to the application and the application URL will be https://[project id]

Now you can access the URL from your browser to use the web application to predict a baby's weight.

You can’t perform that action at this time.