Skip to content

Files

Latest commit

4495be7 · Aug 31, 2017

History

History
This branch is 5800 commits behind GoogleCloudPlatform/nodejs-docs-samples:main.

prediction

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