Are gcloud ml-engine calls included in the google-cloud client library for python? I currently cannot find any documentation for it (though I see the natural language API). I am trying to replicate the following command in a jupyter notebook via the API and have not had any success:
gcloud ml-engine local predict --json-instances=XXX --model-dir=YYY
UPDATE w/ solution
with open('test.json') as data_file:
json_request = json.load(data_file)
response = predict_json(project = PROJECT_ID,
model= 'test_model',
instances = [json_request],
version = 'v1')