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

Google Groups | Unknown author | 5 months ago
  1. 0

    H2O GBM Tuning Tutorial - rbinding error

    Google Groups | 5 months ago | Unknown author
    java.lang.AssertionError: Input chunk (class water.fvec.C0DChunk) has float, but is expected to be categorical
  2. 0

    Creating a union of the dataset with itself using h2o.rbind fails with a conversion error {code} 08-02 16:37:43.595 127.0.0.1:54321 12416 #99666-19 INFO: Method: POST , URI: /99/Rapids, route: /99/Rapids, parms: {ast=(tmp= RTMP_sid_8583_81 (rbind RTMP_sid_8583_80 RTMP_sid_8583_80)), session_id=_sid_8583} 08-02 16:37:43.599 127.0.0.1:54321 12416 #99666-19 ERRR: java.lang.AssertionError: Input chunk (class water.fvec.C0DChunk) has float, but is expected to be categorical 08-02 16:37:43.599 127.0.0.1:54321 12416 #99666-19 ERRR: at water.rapids.ASTRBind$RbindMRTask.map(ASTColSlice.java:434) 08-02 16:37:43.599 127.0.0.1:54321 12416 #99666-19 ERRR: at water.MRTask.compute2(MRTask.java:627) 08-02 16:37:43.599 127.0.0.1:54321 12416 #99666-19 ERRR: at water.MRTask.compute2(MRTask.java:585) 08-02 16:37:43.599 127.0.0.1:54321 12416 #99666-19 ERRR: at water.MRTask.compute2(MRTask.java:585) 08-02 16:37:43.599 127.0.0.1:54321 12416 #99666-19 ERRR: at water.MRTask.compute2(MRTask.java:585) 08-02 16:37:43.599 127.0.0.1:54321 12416 #99666-19 ERRR: at water.H2O$H2OCountedCompleter.compute1(H2O.java:1197) 08-02 16:37:43.599 127.0.0.1:54321 12416 #99666-19 ERRR: at water.rapids.ASTRBind$RbindMRTask$Icer.compute1(ASTRBind$RbindMRTask$Icer.java) 08-02 16:37:43.599 127.0.0.1:54321 12416 #99666-19 ERRR: at water.H2O$H2OCountedCompleter.compute(H2O.java:1193) 08-02 16:37:43.599 127.0.0.1:54321 12416 #99666-19 ERRR: at jsr166y.CountedCompleter.exec(CountedCompleter.java:468) 08-02 16:37:43.599 127.0.0.1:54321 12416 #99666-19 ERRR: at jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263) 08-02 16:37:43.599 127.0.0.1:54321 12416 #99666-19 ERRR: at jsr166y.ForkJoinPool$WorkQueue.pollAndExecAll(ForkJoinPool.java:914) 08-02 16:37:43.599 127.0.0.1:54321 12416 #99666-19 ERRR: at jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:979) 08-02 16:37:43.599 127.0.0.1:54321 12416 #99666-19 ERRR: at jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477) 08-02 16:37:43.599 127.0.0.1:54321 12416 #99666-19 ERRR: at jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104) {code} here is how the bug was created using R {code} abt_dataset$machine_id <- as.factor(abt_dataset$machine_id) > dim(abt_dataset) [1] 8694 89 > str(abt_dataset) Class 'H2OFrame' <environment: 0x0000000019058240> - attr(*, "op")= chr ":=" - attr(*, "eval")= logi TRUE - attr(*, "id")= chr "RTMP_sid_8583_79" - attr(*, "nrow")= int 8694 - attr(*, "ncol")= int 89 - attr(*, "types")=List of 89 ..$ : chr "enum" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "int" - attr(*, "data")='data.frame': 10 obs. of 89 variables: ..$ machine_id : Factor w/ 13 levels "10291","10514",..: 1 1 1 1 1 1 1 1 1 1 ..$ temp000 : num -1.18 -1.16 -1.15 -1.12 -1.06 ... ..$ temp001 : num NaN -1.18 -1.16 -1.15 -1.12 ... ..$ temp002 : num NaN NaN -1.18 -1.16 -1.15 ... ..$ temp003 : num NaN NaN NaN -1.18 -1.16 ... ..$ temp004 : num NaN NaN NaN NaN -1.18 ... ..$ temp005 : num NaN NaN NaN NaN NaN ... ..$ temp006 : num NaN NaN NaN NaN NaN ... ..... ..$ aggr026 : num 0 0 0 0 0 0 0 0 0 0 ..$ aggr027 : num 0 0 0 0 0 0 0 0 0 0 ..$ aggr028 : num 0 0 0 0 0 0 0 0 0 0 ..$ training_flag: num 0 0 0 0 0 0 0 0 0 0 > sub1 <- abt_dataset[abt_dataset$training_flag == 1,] > dim(sub1) [1] 1004 89 > str(sub1) Class 'H2OFrame' <environment: 0x0000000019b69f20> - attr(*, "op")= chr "rows" - attr(*, "eval")= logi TRUE - attr(*, "id")= chr "RTMP_sid_8583_80" - attr(*, "nrow")= int 1004 - attr(*, "ncol")= int 89 - attr(*, "types")=List of 89 ..$ : chr "enum" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "int" - attr(*, "data")='data.frame': 10 obs. of 89 variables: ..$ machine_id : Factor w/ 13 levels "10291","10514",..: 8 8 8 8 8 8 8 8 8 8 ..$ temp000 : num -1.39 -1.41 -1.42 -1.42 -1.42 ... ..$ temp001 : num -1.41 -1.39 -1.41 -1.42 -1.42 ... ..$ temp002 : num -1.44 -1.41 -1.39 -1.41 -1.42 ... ..$ temp003 : num -1.47 -1.44 -1.41 -1.39 -1.41 ... ..$ temp004 : num -1.51 -1.47 -1.44 -1.41 -1.39 ... ..$ temp005 : num -1.57 -1.51 -1.47 -1.44 -1.41 ... .... ..$ aggr026 : num -6.66 0 0 0 0 ... ..$ aggr027 : num -6.66 0 0 0 0 ... ..$ aggr028 : num -1.74 0 0 0 0 ... ..$ training_flag: num 1 1 1 1 1 1 1 1 1 1 > dim(h2o.rbind(sub1,sub1)) ERROR: Unexpected HTTP Status code: 500 Server Error (url = http://127.0.0.1:54321/99/Rapids) Error: lexical error: invalid char in json text. <html> <head> <meta http-equiv= (right here) ------^ {code} Even more strange - after the following export/import to the local system it works {code} > tmp <- as.data.frame(sub1) > dim(tmp) [1] 1004 89 > sub1_2 <- as.h2o(tmp) |=================================================================================================================| 100% > dim(sub1_2) [1] 1004 89 > str(sub1_2) Class 'H2OFrame' <environment: 0x00000000179eca38> - attr(*, "op")= chr "Parse" - attr(*, "id")= chr "tmp" - attr(*, "eval")= logi FALSE - attr(*, "nrow")= int 1004 - attr(*, "ncol")= int 89 - attr(*, "types")=List of 89 ..$ : chr "enum" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "real" ..$ : chr "int" - attr(*, "data")='data.frame': 10 obs. of 89 variables: ..$ machine_id : Factor w/ 2 levels "222812","223968": 1 1 1 1 1 1 1 1 1 1 ..$ temp000 : num -1.39 -1.41 -1.42 -1.42 -1.42 ... ..$ temp001 : num -1.41 -1.39 -1.41 -1.42 -1.42 ... ..$ temp002 : num -1.44 -1.41 -1.39 -1.41 -1.42 ... ..$ temp003 : num -1.47 -1.44 -1.41 -1.39 -1.41 ... ..$ temp004 : num -1.51 -1.47 -1.44 -1.41 -1.39 ... ..... ..$ aggr028 : num -1.74 0 0 0 0 ... ..$ training_flag: num 1 1 1 1 1 1 1 1 1 1 > dim(h2o.rbind(sub1_2,sub1_2)) [1] 2008 89 {code} System Information: * Windows 7 64bit * R {code} platform x86_64-w64-mingw32 arch x86_64 os mingw32 system x86_64, mingw32 status major 3 minor 3.0 year 2016 month 05 day 03 svn rev 70573 language R version.string R version 3.3.0 (2016-05-03) nickname Supposedly Educational {code} * H2O {code} H2O Build git branch rel-turchin H2O Build git hash 3da08b14a0f219fa1086c1c8d475e62fa3e16c29 H2O Build git describe jenkins-rel-turchin-9 H2O Build project version 3.8.2.9 H2O Built by jenkins H2O Built on 2016-06-10 13:25:13 Flow version 0.4.40 {code}

    JIRA | 4 months ago | Roberto Rösler
    java.lang.AssertionError: Input chunk (class water.fvec.C0DChunk) has float, but is expected to be categorical
  3. 0

    GitHub comment 6297#205694367

    GitHub | 8 months ago | hasancelik
    java.lang.AssertionError: Expected queue.put() to be interrupted, but interrupted state is: false
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 6297#233345997

    GitHub | 5 months ago | Donnerbart
    java.lang.AssertionError: Expected queue.put() to be interrupted, but interrupted state is: false
  6. 0

    GitHub comment 6297#185091055

    GitHub | 10 months ago | hasancelik
    java.lang.AssertionError: Expected queue.take() to be interrupted, but interrupted state is: false

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.AssertionError

      Input chunk (class water.fvec.C0DChunk) has float, but is expected to be categorical

      at water.rapids.ASTRBind$RbindMRTask.map()
    2. water.rapids
      ASTRBind$RbindMRTask.map
      1. water.rapids.ASTRBind$RbindMRTask.map(ASTColSlice.java:434)
      1 frame
    3. water
      H2O$H2OCountedCompleter.compute1
      1. water.MRTask.compute2(MRTask.java:627)
      2. water.MRTask.compute2(MRTask.java:585)
      3. water.H2O$H2OCountedCompleter.compute1(H2O.java:1197)
      3 frames
    4. water.rapids
      ASTRBind$RbindMRTask$Icer.compute1
      1. water.rapids.ASTRBind$RbindMRTask$Icer.compute1(ASTRBind$RbindMRTask$Icer.java)
      1 frame
    5. water
      H2O$H2OCountedCompleter.compute
      1. water.H2O$H2OCountedCompleter.compute(H2O.java:1193)
      1 frame
    6. jsr166y
      ForkJoinWorkerThread.run
      1. jsr166y.CountedCompleter.exec(CountedCompleter.java:468)
      2. jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263)
      3. jsr166y.ForkJoinPool$WorkQueue.pollAndExecAll(ForkJoinPool.java:914)
      4. jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:979)
      5. jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477)
      6. jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104)
      6 frames