This is a sample application that shows how to use the predict method on Cloud Machine Learning Engine to perform a prediction on a machine learning model hosted on Google Cloud ML.
Before you can run or deploy the sample, you need to do the following:
-
Enable Google Cloud Machine Learning Engine API
-
Install dependencies:
With
npm:npm installor with
yarn:yarn install
This sample uses the default authentication credentials to access Cloud ML. For that reason we need to set the project that we want to use.
- Use gcloud to set the property value of your active project.
gcloud config set project <MY-GCP-PROJECT>-
Start the application. With
npm:npm start
or with yarn:
yarn start
With npm:
npm run deploy
or with yarn:
yarn run deploy