java.lang.IllegalArgumentException: Vec C2 is not compatible with the rest of the frame

JIRA | Eric Eckstrand | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    when I do this in R: covtype = h2o.importFile(path="smalldata/covtype/covtype.20k.data") covtype[,55] = as.factor(covtype[,55]) hh_balanced = h2o.gbm(x=1:54, y=55, ntrees=50, training_frame=covtype, balance_classes=TRUE, nfolds=10, distribution="multinomial") hh_balanced = h2o.random_forest(x=1:54, y=55, ntrees=50, training_frame=covtype, balance_classes=TRUE, nfolds=10) I get this: ERRR: Unexpected incompatible espc, [0, 764, 1533, 2506, 3665, 4991, 6315, 7664, 9026, 10403, 11787, 13167, 14536, 15756, 16938, 18220, 19462, 20638, 21718, 22941, 24097, 25208, 26538, 27498, 28649, 30015, 31393, 32652, 33898, 35048, 36155, 36754, 37330, 37978, 38640, 39279, 39916, 40586, 41192, 42039] != [0, 507, 1015, 1524, 2033, 2543, 3056, 3566, 4077, 4587, 5098, 5608, 6118, 6630, 7137, 7644, 8149, 8654, 9159, 9663, 10169, 10675, 11185, 11692, 12202, 12713, 13223, 13734, 14239, 14744, 15253, 15760, 16266, 16773, 17281, 17789, 18297, 18806, 19315, 20000] java.lang.IllegalArgumentException: Vec C2 is not compatible with the rest of the frame at water.fvec.Frame.checkCompatible(Frame.java:184) at water.fvec.Frame.<init>(Frame.java:111) at water.fvec.Frame.<init>(Frame.java:72) at water.fvec.Frame.<init>(Frame.java:70) at water.MRTask.doAll(MRTask.java:375) at water.MRTask.doAll(MRTask.java:374) at hex.tree.SharedTree$Driver.compute2(SharedTree.java:171) at water.H2O$H2OCountedCompleter.compute(H2O.java:933) at jsr166y.CountedCompleter.exec(CountedCompleter.java:429) at jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263) at jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:974) at jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477) at jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104) barrier onExCompletion for hex.tree.gbm.GBM$GBMDriver@4fd2ac36 barrier onExCompletion for hex.ModelBuilder$1@3ffc4956 java.lang.IllegalArgumentException: Vec C2 is not compatible with the rest of the frame at water.fvec.Frame.checkCompatible(Frame.java:184) at water.fvec.Frame.<init>(Frame.java:111) at water.fvec.Frame.<init>(Frame.java:72) at water.fvec.Frame.<init>(Frame.java:70) at water.MRTask.doAll(MRTask.java:375) at water.MRTask.doAll(MRTask.java:374) at hex.tree.SharedTree$Driver.compute2(SharedTree.java:171) at water.H2O$H2OCountedCompleter.compute(H2O.java:933) at jsr166y.CountedCompleter.exec(CountedCompleter.java:429) at jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263) at jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:974) at jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477) at jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104) java.lang.IllegalArgumentException: Vec C2 is not compatible with the rest of the frame at water.fvec.Frame.checkCompatible(Frame.java:184) at water.fvec.Frame.<init>(Frame.java:111) at water.fvec.Frame.<init>(Frame.java:72) at water.fvec.Frame.<init>(Frame.java:70) at water.MRTask.doAll(MRTask.java:375) at water.MRTask.doAll(MRTask.java:374) at hex.tree.SharedTree$Driver.compute2(SharedTree.java:171) at water.H2O$H2OCountedCompleter.compute(H2O.java:933) at jsr166y.CountedCompleter.exec(CountedCompleter.java:429) at jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263) at jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:974) at jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477) at jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104)

    JIRA | 2 years ago | Eric Eckstrand
    java.lang.IllegalArgumentException: Vec C2 is not compatible with the rest of the frame
  2. 0

    when I do this in R: covtype = h2o.importFile(path="smalldata/covtype/covtype.20k.data") covtype[,55] = as.factor(covtype[,55]) hh_balanced = h2o.gbm(x=1:54, y=55, ntrees=50, training_frame=covtype, balance_classes=TRUE, nfolds=10, distribution="multinomial") hh_balanced = h2o.random_forest(x=1:54, y=55, ntrees=50, training_frame=covtype, balance_classes=TRUE, nfolds=10) I get this: ERRR: Unexpected incompatible espc, [0, 764, 1533, 2506, 3665, 4991, 6315, 7664, 9026, 10403, 11787, 13167, 14536, 15756, 16938, 18220, 19462, 20638, 21718, 22941, 24097, 25208, 26538, 27498, 28649, 30015, 31393, 32652, 33898, 35048, 36155, 36754, 37330, 37978, 38640, 39279, 39916, 40586, 41192, 42039] != [0, 507, 1015, 1524, 2033, 2543, 3056, 3566, 4077, 4587, 5098, 5608, 6118, 6630, 7137, 7644, 8149, 8654, 9159, 9663, 10169, 10675, 11185, 11692, 12202, 12713, 13223, 13734, 14239, 14744, 15253, 15760, 16266, 16773, 17281, 17789, 18297, 18806, 19315, 20000] java.lang.IllegalArgumentException: Vec C2 is not compatible with the rest of the frame at water.fvec.Frame.checkCompatible(Frame.java:184) at water.fvec.Frame.<init>(Frame.java:111) at water.fvec.Frame.<init>(Frame.java:72) at water.fvec.Frame.<init>(Frame.java:70) at water.MRTask.doAll(MRTask.java:375) at water.MRTask.doAll(MRTask.java:374) at hex.tree.SharedTree$Driver.compute2(SharedTree.java:171) at water.H2O$H2OCountedCompleter.compute(H2O.java:933) at jsr166y.CountedCompleter.exec(CountedCompleter.java:429) at jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263) at jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:974) at jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477) at jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104) barrier onExCompletion for hex.tree.gbm.GBM$GBMDriver@4fd2ac36 barrier onExCompletion for hex.ModelBuilder$1@3ffc4956 java.lang.IllegalArgumentException: Vec C2 is not compatible with the rest of the frame at water.fvec.Frame.checkCompatible(Frame.java:184) at water.fvec.Frame.<init>(Frame.java:111) at water.fvec.Frame.<init>(Frame.java:72) at water.fvec.Frame.<init>(Frame.java:70) at water.MRTask.doAll(MRTask.java:375) at water.MRTask.doAll(MRTask.java:374) at hex.tree.SharedTree$Driver.compute2(SharedTree.java:171) at water.H2O$H2OCountedCompleter.compute(H2O.java:933) at jsr166y.CountedCompleter.exec(CountedCompleter.java:429) at jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263) at jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:974) at jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477) at jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104) java.lang.IllegalArgumentException: Vec C2 is not compatible with the rest of the frame at water.fvec.Frame.checkCompatible(Frame.java:184) at water.fvec.Frame.<init>(Frame.java:111) at water.fvec.Frame.<init>(Frame.java:72) at water.fvec.Frame.<init>(Frame.java:70) at water.MRTask.doAll(MRTask.java:375) at water.MRTask.doAll(MRTask.java:374) at hex.tree.SharedTree$Driver.compute2(SharedTree.java:171) at water.H2O$H2OCountedCompleter.compute(H2O.java:933) at jsr166y.CountedCompleter.exec(CountedCompleter.java:429) at jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263) at jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:974) at jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477) at jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104)

    JIRA | 2 years ago | Eric Eckstrand
    java.lang.IllegalArgumentException: Vec C2 is not compatible with the rest of the frame

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Vec C2 is not compatible with the rest of the frame

      at water.fvec.Frame.checkCompatible()
    2. water.fvec
      Frame.<init>
      1. water.fvec.Frame.checkCompatible(Frame.java:184)
      2. water.fvec.Frame.<init>(Frame.java:111)
      3. water.fvec.Frame.<init>(Frame.java:72)
      4. water.fvec.Frame.<init>(Frame.java:70)
      4 frames
    3. water
      MRTask.doAll
      1. water.MRTask.doAll(MRTask.java:375)
      2. water.MRTask.doAll(MRTask.java:374)
      2 frames
    4. hex.tree
      SharedTree$Driver.compute2
      1. hex.tree.SharedTree$Driver.compute2(SharedTree.java:171)
      1 frame
    5. water
      H2O$H2OCountedCompleter.compute
      1. water.H2O$H2OCountedCompleter.compute(H2O.java:933)
      1 frame
    6. jsr166y
      ForkJoinWorkerThread.run
      1. jsr166y.CountedCompleter.exec(CountedCompleter.java:429)
      2. jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263)
      3. jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:974)
      4. jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477)
      5. jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104)
      5 frames