google-api-python-client icon indicating copy to clipboard operation
google-api-python-client copied to clipboard

Need support for prediction model sample with instance

Open Winthan opened this issue 6 years ago • 2 comments

predict_custom_model_sample(
    "projects/794xxx496/locations/us-central1/xxxx/3452xxx524447744",
    { "instance_key_1": "value", ... },
    { "parameter_key_1": "value", ... }
)
```
Google is giving this example, I am not understanding the parameter_key and instance_key. To my understanding, I need to send the JSON instance.

```{"instances": [  {"when": {"price": "1212"}}]}```
How can I make it work with the predict_custom_model_sample?


https://stackoverflow.com/questions/65067104/python-google-prediction-example

Winthan avatar Dec 02 '20 13:12 Winthan

found the solution

Winthan avatar Dec 02 '20 23:12 Winthan

What is the solution?

pratapram avatar Jan 28 '21 16:01 pratapram