alsawaqi / google-api-java-client

Automatically exported from code.google.com/p/google-api-java-client
1 stars 0 forks source link

prediction sample: "Training (hasn't) has not completed." #40

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In the current version of:

hg/ prediction-json-clientlogin-sample/ src/ com/ google/ api/ client/ sample/ 
prediction/ PredictionSample.java

checked-in by:  Yaniv Inbar 

on line 91, it says:

if ("Training hasn't completed.".equals(checkTraining.modelinfo)) {

but, in fact, Google returns this string if training hasn't finished:

"modelinfo":"Training has not completed."

i.e., "has not" instead of "hasn't".

Original issue reported on code.google.com by Sheryl....@gmail.com on 8 Oct 2010 at 11:52

GoogleCodeExporter commented 9 years ago
The online docs still say "hasn't", so that should probably be fixed also.  
Anyway, I'll just change it to check for "estimated accuracy" to avoid this 
question.  Thanks for reporting the problem.

Original comment by yan...@google.com on 19 Oct 2010 at 3:43

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 19 Oct 2010 at 3:46