From 67c02997328428c4ed97090b7f6fd94c78b1bcd2 Mon Sep 17 00:00:00 2001 From: rhaertel80 Date: Thu, 27 Apr 2017 03:56:21 -0700 Subject: [PATCH 1/2] Changed the endpoint from v1beta1 to v1 --- ml_engine/online_prediction/predict.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ml_engine/online_prediction/predict.py b/ml_engine/online_prediction/predict.py index 6a226f1c51c..9b4fd3ef55d 100644 --- a/ml_engine/online_prediction/predict.py +++ b/ml_engine/online_prediction/predict.py @@ -80,7 +80,7 @@ def predict_examples(project, Mapping[str: any]: dictionary of prediction results defined by the model. """ - service = googleapiclient.discovery.build('ml', 'v1beta1') + service = googleapiclient.discovery.build('ml', 'v1') name = 'projects/{}/models/{}'.format(project, model) if version is not None: From 674b1430260aac1f1599f4480dbb61bde600d51c Mon Sep 17 00:00:00 2001 From: Eli Bixby Date: Thu, 18 May 2017 12:44:40 -0700 Subject: [PATCH 2/2] Update predict.py --- ml_engine/online_prediction/predict.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ml_engine/online_prediction/predict.py b/ml_engine/online_prediction/predict.py index 9b4fd3ef55d..910f2efde45 100644 --- a/ml_engine/online_prediction/predict.py +++ b/ml_engine/online_prediction/predict.py @@ -43,7 +43,7 @@ def predict_json(project, model, instances, version=None): # Create the ML Engine service object. # To authenticate set the environment variable # GOOGLE_APPLICATION_CREDENTIALS= - service = googleapiclient.discovery.build('ml', 'v1beta1') + service = googleapiclient.discovery.build('ml', 'v1') name = 'projects/{}/models/{}'.format(project, model) if version is not None: