I am trying to run an ML prediction request on a JSON file records.json
.
!gcloud ai-platform predict --model housing_prices --json-instances records.json
I am getting the following error.
Using endpoint [https://ml.googleapis.com/]
ERROR: gcloud crashed (AttributeError): 'NoneType' object has no attribute 'framework'
All libraries are imported.
import pandas as pd
import tensorflow as tf
I am following a qwiklabs lab 'Predict Housing Prices with Tensorflow and AI Platform'. All commands are in Jupyter notebook on GCP using tensorflow
framework. I am missing something. Any help is appreciated.
I managed to resolve the issue. :) Thanks @john-hanley for pointing me to check what I might have missed.
Resolution:
$ gcloud components update
!gcloud ai-platform predict --model housing_prices --json-instances records.json
Using endpoint [https://ml.googleapis.com/]
PREDICTIONS
[24958.638671875]
[19435.654296875]