The Cloud Prediction API provides a RESTful API to build Machine Learning models.
-
Read Prerequisites and How to run a sample first.
-
Install dependencies:
With
npm:npm installWith
yarn:yarn install
View the documentation or the source code.
Run the sample:
Usage: node hostedmodels "some phrase"
Example:
node hostedmodels "Hello world"
-
Set the
GCLOUD_PROJECTandGOOGLE_APPLICATION_CREDENTIALSenvironment variables. -
Run the tests:
With
npm:npm testWith
yarn:yarn test