You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Online Prediction with the Cloud Machine Learning Engine
2
-
3
-
This sample assumes that you have already run the Cloud ML Engine end to end walkthrough using the UCI Census dataset, including training a wide & deep model and deploying it into production, ready to take prediction requests.
4
-
5
-
This sample then shows you how to create a client that takes user JSON inputs, and sends those inputs as online prediction requests to a given deployed model.
6
-
7
-
In order to use this client, first obtain the following information, and store it into the given environment variables:
After having done that, the client will ask you for ‘Valid JSON’ input as follows:
22
-
23
-
```
24
-
Valid JSON >>>
25
-
```
26
-
27
-
Now you can input a JSON example that corresponds to the schema of the given model. For instance if you are sending prediction requests to the census-based model created in the Cloud ML Engine walkthrough, you can send a JSON example like the following:
0 commit comments