r - google prediction api "hello prediction" tutorial -


i have run through google prediction api tutorials , documentation "hello prediction - https://cloud.google.com/prediction/docs/hello_world

however when training model in developer console request fails following output:

request:

post https://www.googleapis.com/prediction/v1.6/projects/959568262740/trainedmodels?key={your_api_key}  {  "id": "language_id",  "storagedatalocation": "http://storage.googleapis.com/2341234/language_id.txt" } 

response:

400 ok  - show headers -  {  "error": {   "errors": [    {     "domain": "global",     "reason": "invalid",     "message": "training data file empty.",     "locationtype": "other",     "location": "id"    }   ],   "code": 400,   "message": "training data file empty."  } } 

i've implemented authorize requests using oauth 2.0: - there else should doing, or may have changed between google prediction api v 1.6 , tutorial. link additional tutorial or article on subject extremely valuable can debug myself!

your storagedatalocation not correct.

when go overview tab in google developers console, you'll find project id: xxxxx (example) , bucket you've stored in called yyyy (example).

then replace "storagedatalocation:" "xxxxx/yyyy". should solve problem. need relative path google storage, , not absolute web path.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -