H2O GBM Tuning Tutorial - rbinding error

219 views
Skip to first unread message

nourdine.cr...@gmail.com

unread,
Jun 30, 2016, 5:06:49 AM6/30/16
to H2O Open Source Scalable Machine Learning - h2ostream
Dear All,

I'm following the H2O GBM Tuning Tutorial for R (http://blog.h2o.ai/2016/06/h2o-gbm-tuning-tutorial-for-r/) and at the step of "Establish baseline performance", second model :

gbm <- h2o.gbm(x = predictors, y = response, training_frame = h2o.rbind(train, valid), nfolds = 4, seed = 0xDECAF)


I get this error message :

ERROR: Unexpected HTTP Status code: 500 Server Error (url = http://localhost:54321/99/Rapids)

Error: lexical error: invalid char in json text.
<html> <head> <meta http-equiv=
(right here) ------^

When I tried to execute just the 'h2o.rbind(train, valid)' I get the same error message :

ERROR: Unexpected HTTP Status code: 500 Server Error (url = http://localhost:54321/99/Rapids)

Error: lexical error: invalid char in json text.
<html> <head> <meta http-equiv=
(right here) ------^

**Information**
Version of H2O : 3.8.2.8
Type of machine : Windows 7, 64 bits
Language : R version 3.3.0 (2016-05-03)

Can anyone help me ?

Thank you for your feedback !


Darren Cook

unread,
Jun 30, 2016, 5:18:56 AM6/30/16
to h2os...@googlegroups.com
> When I tried to execute just the 'h2o.rbind(train, valid)' I get the same error message :

What do you get if you just try to view each of train and valid? (Type
"train" in the R commandline, without the quotes, and it should give you
the first 6 lines of it.)

Darren

Tom Kraljevic

unread,
Jun 30, 2016, 5:27:52 AM6/30/16
to nourdine.cr...@gmail.com, H2O Open Source Scalable Machine Learning - h2ostream

there is probably an exception in the h2o log file.
can you find it and paste it here?
> --
> 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.

Software Craftsmanship

unread,
Jun 30, 2016, 6:40:19 AM6/30/16
to H2O Open Source Scalable Machine Learning - h2ostream, nourdine.cr...@gmail.com
Logs :

06-30 12:34:21.183 127.0.0.1:54321       8432   #08726-14 INFO: Method: POST  , URI: /99/Rapids, route: /99/Rapids, parms: {ast=(tmp= RTMP_sid_8e5d_7 (rbind train.hex valid.hex)), session_id=_sid_8e5d}
06-30 12:34:21.215 127.0.0.1:54321       8432   #08726-14 ERRR: java.lang.AssertionError: Input chunk (class water.fvec.C0DChunk) has float, but is expected to be categorical
06-30 12:34:21.215 127.0.0.1:54321       8432   #08726-14 ERRR: 	at water.rapids.ASTRBind$RbindMRTask.map(ASTColSlice.java:434)
06-30 12:34:21.215 127.0.0.1:54321       8432   #08726-14 ERRR: 	at water.MRTask.compute2(MRTask.java:627)
06-30 12:34:21.215 127.0.0.1:54321       8432   #08726-14 ERRR: 	at water.MRTask.compute2(MRTask.java:585)
06-30 12:34:21.215 127.0.0.1:54321       8432   #08726-14 ERRR: 	at water.H2O$H2OCountedCompleter.compute1(H2O.java:1197)
06-30 12:34:21.215 127.0.0.1:54321       8432   #08726-14 ERRR: 	at water.rapids.ASTRBind$RbindMRTask$Icer.compute1(ASTRBind$RbindMRTask$Icer.java)
06-30 12:34:21.215 127.0.0.1:54321       8432   #08726-14 ERRR: 	at water.H2O$H2OCountedCompleter.compute(H2O.java:1193)
06-30 12:34:21.215 127.0.0.1:54321       8432   #08726-14 ERRR: 	at jsr166y.CountedCompleter.exec(CountedCompleter.java:468)
06-30 12:34:21.215 127.0.0.1:54321       8432   #08726-14 ERRR: 	at jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263)
06-30 12:34:21.215 127.0.0.1:54321       8432   #08726-14 ERRR: 	at jsr166y.ForkJoinPool$WorkQueue.pollAndExecAll(ForkJoinPool.java:914)
06-30 12:34:21.215 127.0.0.1:54321       8432   #08726-14 ERRR: 	at jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:979)
06-30 12:34:21.215 127.0.0.1:54321       8432   #08726-14 ERRR: 	at jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477)
06-30 12:34:21.215 127.0.0.1:54321       8432   #08726-14 ERRR: 	at jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104)

Software Craftsmanship

unread,
Jun 30, 2016, 6:44:26 AM6/30/16
to H2O Open Source Scalable Machine Learning - h2ostream
Indeed I get the first 6 lines

Tom Kraljevic

unread,
Jun 30, 2016, 9:11:57 AM6/30/16
to Software Craftsmanship, H2O Open Source Scalable Machine Learning - h2ostream

it looks like there is a data type mismatch between the two frames on one of the columns.

ERRR: java.lang.AssertionError: Input chunk (class water.fvec.C0DChunk) has float, but is expected to be categorical

Tom

Sent from my iPhone

Roberto Rösler

unread,
Jul 29, 2016, 4:45:04 AM7/29/16
to H2O Open Source Scalable Machine Learning - h2ostream, nourdine.cr...@gmail.com
Hi Tom,

for me that looks like a bug because even making a union of the dataset with itself results in an errr (logicaly there shouldn't be any difference in the datatypes):

> dim(abt_dataset_training)
[1] 929  90
> dim(h2o.rbind(abt_dataset_training,abt_dataset_training))

ERROR
: Unexpected HTTP Status code: 500 Server Error (url = http://localhost:54321/99/Rapids)

Error: lexical error: invalid char in json text.
                                       
<html> <head> <meta http-equiv=
                     
(right here) ------^

The log tells me the same strange message about a conversion problem:

07-29 10:43:00.929 127.0.0.1:54321       9848   #99666-20 INFO: Method: POST  , URI: /99/Rapids, route: /99/Rapids, parms: {ast=(tmp= RTMP_sid_b68d_21 (rbind RTMP_sid_b68d_18 RTMP_sid_b68d_18)), session_id=_sid_b68d}
07-29 10:43:00.946 127.0.0.1:54321       9848   #99666-20 ERRR: java.lang.AssertionError: Input chunk (class water.fvec.C0DChunk) has float, but is expected to be categorical
07-29 10:43:00.946 127.0.0.1:54321       9848   #99666-20 ERRR:         at water.rapids.ASTRBind$RbindMRTask.map(ASTColSlice.java:434)
07-29 10:43:00.946 127.0.0.1:54321       9848   #99666-20 ERRR:         at water.MRTask.compute2(MRTask.java:627)
07-29 10:43:00.946 127.0.0.1:54321       9848   #99666-20 ERRR:         at water.MRTask.compute2(MRTask.java:585)
07-29 10:43:00.946 127.0.0.1:54321       9848   #99666-20 ERRR:         at water.MRTask.compute2(MRTask.java:585)
07-29 10:43:00.946 127.0.0.1:54321       9848   #99666-20 ERRR:         at water.MRTask.compute2(MRTask.java:585)
07-29 10:43:00.946 127.0.0.1:54321       9848   #99666-20 ERRR:         at water.H2O$H2OCountedCompleter.compute1(H2O.java:1197)
07-29 10:43:00.946 127.0.0.1:54321       9848   #99666-20 ERRR:         at water.rapids.ASTRBind$RbindMRTask$Icer.compute1(ASTRBind$RbindMRTask$Icer.java)
07-29 10:43:00.946 127.0.0.1:54321       9848   #99666-20 ERRR:         at water.H2O$H2OCountedCompleter.compute(H2O.java:1193)
07-29 10:43:00.946 127.0.0.1:54321       9848   #99666-20 ERRR:         at jsr166y.CountedCompleter.exec(CountedCompleter.java:468)
07-29 10:43:00.946 127.0.0.1:54321       9848   #99666-20 ERRR:         at jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263)
07-29 10:43:00.946 127.0.0.1:54321       9848   #99666-20 ERRR:         at jsr166y.ForkJoinPool$WorkQueue.pollAndExecAll(ForkJoinPool.java:914)
07-29 10:43:00.946 127.0.0.1:54321       9848   #99666-20 ERRR:         at jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:979)
07-29 10:43:00.946 127.0.0.1:54321       9848   #99666-20 ERRR:         at jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477)
07-29 10:43:00.946 127.0.0.1:54321       9848   #99666-20 ERRR:         at jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104)

H2O 3.8.2.9 on Windows

Regards,

Roberto
Reply all
Reply to author
Forward
0 new messages