Skip to content

Latest commit

 

History

History
 
 

prediction

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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