Questions tagged [google-prediction]

Google's cloud-based machine learning tools can help analyze your data to add machine learning features to your applications.

Google's cloud-based machine learning tools can help analyze your data to add machine learning features to your applications.

Learn more about the Google Prediction API: https://developers.google.com/prediction/

111 questions
3
votes
1 answer

Why does this model fail?

Here is the data set https://gist.github.com/kirkstrobeck/d8b768867890807f9dc9 When using Google Prediction API it will go from RUNNING for about 30 minutes, then ERROR: INTERNAL ERROR. Why does it fail? It seems to be a standard consumable…
Kirk Strobeck
  • 17,984
  • 20
  • 75
  • 114
3
votes
3 answers

Fatal error: Uncaught exception 'Google_Auth_Exception' with message 'Error refreshing the OAuth2 token, message: '{ "error" : "invalid_grant" }

I have a Prediction app that's based on Google-api-php client version 1.0.0 latest. it's perfectly working in the localhost environment. but when I deploy same exact app into the hosting server environment it's gave me following issue. THIS IS THE…
3
votes
2 answers

Long running program in Google App Engine

I have written a servlet code in Java for reading a line from file which is stored in Google Cloud Storage . Once I read each line I pass it to prediction API . Once i get the prediction of the text passed . I append it to original line and store it…
2
votes
3 answers

Update Google Prediction model in PHP

I'm trying to update my model in php. I can train and predict but I can't update. Maybe it's because of the use of PUT but I can't find the problem. Here is the code: $authCode = $_GET['token']; $man =$_GET['owner']; $type = $_GET['type']; $title=…
Calado
  • 39
  • 1
  • 7
2
votes
1 answer

"Missing Access Token" in google-api gem

I'm trying to use the command like google-api gem with the prediction API. I think I've been doing this exactly as I've been reading, but it keeps giving me the error "Missing Access Token". First I authenticate via oauth1. It brings me to the log…
AdamB
  • 3,101
  • 4
  • 34
  • 44
2
votes
2 answers

ML Engine Online Prediction - Unexpected tensor name: values

I get the following error when trying to make an online prediction on my ML Engine model. The key "values" is not correct. (See error on image.) enter image description here I already tested with RAW image data : {"image_bytes":{"b64":…
2
votes
2 answers

Getting error on ML-Engine predict but local predict works fine

I have searched a lot here but unfortunately could not find an answer. I am running TensorFlow 1.3 (installed via PiP on MacOS) on my local machine, and have created a model using the provided "ssd_mobilenet_v1_coco" checkpoints. I managed to train…
2
votes
1 answer

Tensorflow: Resize Image Placeholder

I have a trained TF model that that operates on a serialized (TFRecord) input. The image data has variable shape and is converted to a 229x229x3 shape via tf.image.resize_images(...). I would like to use the gcloud ml-engine predict platform similar…
2
votes
3 answers

"TypeError: cannot instantiate ctype 'EVP_MD_CTX' of unknown size" while trying to build google prediction api

Below is the code import httplib2, argparse, os, sys, json from oauth2client import tools, file, client from oauth2client.service_account import ServiceAccountCredentials from googleapiclient import discovery from googleapiclient.errors import…
wi3o
  • 1,467
  • 3
  • 17
  • 29
2
votes
0 answers

spam detection using google prediction api

I am looking for example to build a spam detection service in a social network. For example: identify a user posted comment as spam on a social network site (such as facebook). I don't have any training data. Does the google API have its own…
2
votes
0 answers

Use of Google Prediction API in node.js: Error: trainedmodels is undefined

Above code was written in intellij IDEA trying to implement Google Prediction API. var prediction= require('../googleapis/apis/prediction/v1.6'); var params = { project: "693608054772", resource: {"id":…
jones
  • 21
  • 1
2
votes
1 answer

Googlepredictionapi package in R studio

When I try to install the googlepredictionapi_0.1.tar.gz package in R it says: Installing package into ‘C:/Users/xxx/Documents/R/win-library/3.1’ (as ‘lib’ is unspecified) * installing *source* package 'googlepredictionapi' ... ERROR: a 'NAMESPACE'…
SpaceOddity
  • 371
  • 3
  • 9
  • 20
2
votes
1 answer

Google Prediction API always returns a score of 1.0 or 0.0

I'm using the the insert function of the google-api-ruby-client and passing in an array of trainingInstances. When I call predict I used to get scores like 0.653264 and 0.346736 (using two output categories). After doing some refactoring I now…
Mikhail Janowski
  • 4,209
  • 7
  • 28
  • 40
2
votes
0 answers

google-prediction api for ocr - serialized image for training

Could I use google-prediction api to create a document scan and conversion app? Are there any examples of how? Will feeding it training data which is a serialized image work?
sathishvj
  • 1,394
  • 2
  • 17
  • 28
2
votes
2 answers

Error while executing Google Prediction API Command line Sample

I have downloaded the sample command line program for prediction api and imported in eclipse as mention here . I have imported that sample program and replaced the content of client_secrets.json with values of file which i downloaded from api…