google-cloud-platformgoogle-cloud-mlgoogle-predictioncensus

Prediction on GCP with ML Engine


I am working on GCP to predict, I'm using the census dataset, actually I'm discovering google APIs ( ML Engine ...).

When I launch the prediction job , the job runs successfully, but it doesn't display the result.

Can anyone help ? Do you have any idea why it doesn't generate an output ?

Thanks in advance :)

This is the error that occurs

https://i.sstatic.net/9gyTb.png


Solution

  • This error is common when you train with one version of TF and then try serving with a lower version. For instance, if you are using Cloud console to deploy your model, it currently has no way of letting you select the version of TensorFlow for serving, so the model is deployed using TF 1.0, but your model may have been trained with a higher version of TF (current version is 1.7).

    Although the Cloud console doesn't currently let you select the version (but it will soon!), using gcloud or the REST API directly does allow you to.

    In the docs, there is a section on creating a model that has code snippets under "gcloud" and "python". With gcloud you simply add the argument --runtime-version=1.6 (or whatever version) and with python you add the property "runtimeVersion": "1.6" to the body of the request.