ERROR: Unexpected HTTP Status code: 400 Bad Request (url = http://localhost:54321/99/Rapids)

758 views
Skip to first unread message

Tim Graham

unread,
May 31, 2016, 12:50:13 AM5/31/16
to H2O Open Source Scalable Machine Learning - h2ostream
Hi, I know that other users have had this kind of error. 

I have not been able to fix the problem using the suggested solutions in other topic threads.

   1. The version of H2O you are using

3.8.1.3

   2. The type of machine you are using (i.e. OS X 10.11.4, etc)

OS X 10.11.5

   3. The language you are working in and version (i.e. Python 2.7, etc)

R 3.3.0 ("Supposedly Education")

   4. The line of code you entered that resulted in an error message

test$Accuracy <- pred$predict == test$Cover_Type

   5. Your error message

ERROR: Unexpected HTTP Status code: 400 Bad Request (url = http://localhost:54321/99/Rapids)

[output from a character vector: java.lang.IllegalArgumentException]

Error in .h2o.doSafeREST(h2oRestApiVersion = h2oRestApiVersion, urlSuffix = page,  : 
  
ERROR MESSAGE:

Name lookup of 'NULL' failed

   6. Type of data you are using (if applicable)

I convert a dataframe to a H2OFrame object. The dataframe is 14776 rows x 12 columns. The features are all categorical variables.


Erin LeDell

unread,
May 31, 2016, 6:08:43 AM5/31/16
to Tim Graham, H2O Open Source Scalable Machine Learning - h2ostream

Try this and let me know if that works:

temp <- pred$predict == test$Cover_Type
test$Accuracy <- temp

--
You received this message because you are subscribed to the Google Groups "H2O Open Source Scalable Machine Learning - h2ostream" group.
To unsubscribe from this group and stop receiving emails from it, send an email to h2ostream+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
Erin LeDell Ph.D.
Statistician & Machine Learning Scientist | H2O.ai

Tom Kraljevic

unread,
May 31, 2016, 6:32:34 AM5/31/16
to Erin LeDell, Tim Graham, H2O Open Source Scalable Machine Learning - h2ostream

also try cbind()ing in the preditions into the test frame and then doing the operation on just the test frame.

the distributed data layout of the two frames may be different and cbind() will copy the column into the test frame so the layout is consistent.

tom

Sent from my iPhone

Tim Graham

unread,
Jun 1, 2016, 2:55:55 AM6/1/16
to H2O Open Source Scalable Machine Learning - h2ostream, timm...@gmail.com
My sincere apologies, but I have discovered that the bug related to an incorrect column name (test$Cover_Type). Please consider this thread closed and congratulations on a fine piece of software.
Reply all
Reply to author
Forward
0 new messages