GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — java-docs-samples/mlengine/online-prediction at main · coderatgoogle/java-docs-samples

Expand file tree

/

online-prediction

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

online-prediction

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
src/main/java
src/main/java
 
 
README.md
README.md
 
 
input.txt
input.txt
 
 
pom.xml
pom.xml
 
 

README.md

Outline

Cloud Machine Learning Engine - Online Prediction with Java

Open in Cloud Shell

Setup

This sample demonstrates how to send online prediction requests to your deployed model on CMLE. Follow the tutorial to deploy your model first.

This sample is using the Application Default Credential. You can install the Google Cloud SDK and run:

gcloud auth application-default login

Run

Modify the OnlinePredictionSample.java with your project/model/version information.

Compile the sample code using Maven by running the following command:

mvn compile

Execute the sample code using Maven by running the following command:

mvn -q exec:java
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.