Online prediction is failing with "Unable to get elements from the feed as bytes". What does this mean and how can I fix it?
I'm generating predictions using the following code:
request_data = [{ 'examples' :
{'pickup_longitude': -73.885262,
'pickup_latitude': 40.773008,
'dropoff_longitude': -73.987232,
'dropoff_latitude': 40.732403,
'fare_amount': 0,
'passenger_count': 2}}]
parent = 'projects/%s/models/%s/versions/%s' % ('some project', 'taxifare', 'v1')
response = api.projects().predict(body={'instances': request_data}, name=parent).execute()