Skip to content

Latest commit

 

History

History
59 lines (34 loc) · 1.43 KB

README.md

File metadata and controls

59 lines (34 loc) · 1.43 KB

Google Cloud Platform logo

Google Cloud Prediction API Node.js Samples

Build

The Cloud Prediction API provides a RESTful API to build Machine Learning models.

Table of Contents

Setup

  1. Read Prerequisites and How to run a sample first.

  2. Install dependencies:

    With npm:

    npm install
    

    With yarn:

    yarn install
    

Samples

Hosted Models

View the documentation or the source code.

Usage: node hostedmodels <phrase>

node hostedmodels "Hello world"

Running the tests

  1. Set the GCLOUD_PROJECT and GOOGLE_APPLICATION_CREDENTIALS environment variables.

  2. Run the tests:

    With npm:

    npm test
    

    With yarn:

    yarn test