python - Google Prediction API, Hello Prediction: error - Too few arguments -
today first day trying out google prediction api on anaconda python (ubuntu linux).
i wanted try out hello prediction starter code prediction.py using following:
$ python prediction.py --object_name="mymodelid/mybucket" --id="myidentifier"
exactly how advised in code documentation.
however, getting following error:
usage: pred.py [-h] [--auth_host_name auth_host_name] [--noauth_local_webserver] [--auth_host_port [auth_host_port [auth_host_port ...]]] [--logging_level {debug,info,warning,error,critical}] object_name id pred.py: error: few arguments
i've tried debugging, lost within argparse
package methods.
any appreciated.
edit: prerequisites reproduction of code include uploading data google storage. steps can found here.
according error message should 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 include values '--auth_host_hame=joe', that's in []
, optional. there isn't '[--id id]' term in usage line.
Comments
Post a Comment