Skip to content Skip to sidebar Skip to footer

Google Prediction API, Hello Prediction: Error - Too Few Arguments

Today is my first day trying out Google Prediction API on Anaconda Python (Ubuntu Linux). I wanted to try out the Hello Prediction starter code prediction.py using the following:

Solution 1:

According to the error message you should be using

$ python prediction.py mymodelid/mybucket myidentifier

It expects 2 strings, without flags.

usage: pred.py [-h] [--auth_host_name AUTH_HOST_NAME]
               ...
               object_name id

You can also include values like '--auth_host_hame=Joe', but that's in [], so is optional. There isn't an '[--id ID]' term in the usage line.


Post a Comment for "Google Prediction API, Hello Prediction: Error - Too Few Arguments"