java.lang.AssertionError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • in R: > iris.hex <- h2o.uploadFile(conn, "smalldata/iris/iris_wheader.csv") > i.sid <- h2o.runif(iris.hex) > iris.train <- h2o.assign(iris.hex[i.sid > .2, ], "iris.train") > iris.test <- h2o.assign(iris.hex[i.sid <= .2, ], "iris.test") > x <- c(1,2,3,4) > y <- 5 > distribution = "multinomial" > ntrees <- 25 > max_depth <- 26 > min_rows <- 7 > learn_rate <- 0.898473272565752 > nbins <- 378 > balance_classes <- TRUE > max_after_balance_size <- 0.00678165559656918 > model <- h2o.gbm(x=x, y=y, distribution=distribution, ntrees=ntrees, max_depth=max_depth, min_rows=min_rows, learn_rate=learn_rate, nbins=nbins, balance_classes=balance_classes, max_after_balance_size=max_after_balance_size, training_frame=iris.train, validation_frame=iris.test) gives: URI: /3/ModelBuilders/gbm, route: /3/ModelBuilders/gbm, parms: {distribution=multinomial, max_after_balance_size=0.00678165559656918, validation_frame=iris.test, response_column=class, max_depth=26, balance_classes=TRUE, nbins=378, training_frame=iris.train, learn_rate=0.898473272565752, ntrees=25, ignored_columns=[""], min_rows=7} 05-05 19:15:38.676 172.16.2.40:54321 16872 FJ-0-5 INFO: Building H2O GBM model with these parameters: 05-05 19:15:38.676 172.16.2.40:54321 16872 FJ-0-5 INFO: {"_model_id":null,"_train":{"name":"iris.train","type":"Key"},"_valid":{"name":"iris.test","type":"Key"},"_ignored_columns":[""],"_drop_na20_cols":false,"_dropConsCols":true,"_score_each_iteration":false,"_response_column":"class","_balance_classes":true,"_max_after_balance_size":0.0067816554,"_class_sampling_factors":null,"_max_hit_ratio_k":10,"_max_confusion_matrix_size":20,"_ntrees":25,"_max_depth":26,"_min_rows":7,"_nbins":378,"_r2_stopping":0.999999,"_seed":0,"_checkpoint":false,"_distribution":"multinomial","_learn_rate":0.89847326} 05-05 19:15:38.676 172.16.2.40:54321 16872 FJ-0-5 INFO: Dropping ignored columns: [] java.lang.AssertionError at water.util.MRUtils.sampleFrameStratified(MRUtils.java:132) at hex.tree.SharedTree$Driver.compute2(SharedTree.java:129) at water.H2O$H2OCountedCompleter.compute(H2O.java:682) 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@5164a171 java.lang.AssertionError at water.util.MRUtils.sampleFrameStratified(MRUtils.java:132) at hex.tree.SharedTree$Driver.compute2(SharedTree.java:129) at water.H2O$H2OCountedCompleter.compute(H2O.java:682) 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) probably has to do with max_after_balance_size being ridiculously small, but perhaps this should be handled better???
    via by Eric Eckstrand,
  • in R: > iris.hex <- h2o.uploadFile(conn, "smalldata/iris/iris_wheader.csv") > i.sid <- h2o.runif(iris.hex) > iris.train <- h2o.assign(iris.hex[i.sid > .2, ], "iris.train") > iris.test <- h2o.assign(iris.hex[i.sid <= .2, ], "iris.test") > x <- c(1,2,3,4) > y <- 5 > distribution = "multinomial" > ntrees <- 25 > max_depth <- 26 > min_rows <- 7 > learn_rate <- 0.898473272565752 > nbins <- 378 > balance_classes <- TRUE > max_after_balance_size <- 0.00678165559656918 > model <- h2o.gbm(x=x, y=y, distribution=distribution, ntrees=ntrees, max_depth=max_depth, min_rows=min_rows, learn_rate=learn_rate, nbins=nbins, balance_classes=balance_classes, max_after_balance_size=max_after_balance_size, training_frame=iris.train, validation_frame=iris.test) gives: URI: /3/ModelBuilders/gbm, route: /3/ModelBuilders/gbm, parms: {distribution=multinomial, max_after_balance_size=0.00678165559656918, validation_frame=iris.test, response_column=class, max_depth=26, balance_classes=TRUE, nbins=378, training_frame=iris.train, learn_rate=0.898473272565752, ntrees=25, ignored_columns=[""], min_rows=7} 05-05 19:15:38.676 172.16.2.40:54321 16872 FJ-0-5 INFO: Building H2O GBM model with these parameters: 05-05 19:15:38.676 172.16.2.40:54321 16872 FJ-0-5 INFO: {"_model_id":null,"_train":{"name":"iris.train","type":"Key"},"_valid":{"name":"iris.test","type":"Key"},"_ignored_columns":[""],"_drop_na20_cols":false,"_dropConsCols":true,"_score_each_iteration":false,"_response_column":"class","_balance_classes":true,"_max_after_balance_size":0.0067816554,"_class_sampling_factors":null,"_max_hit_ratio_k":10,"_max_confusion_matrix_size":20,"_ntrees":25,"_max_depth":26,"_min_rows":7,"_nbins":378,"_r2_stopping":0.999999,"_seed":0,"_checkpoint":false,"_distribution":"multinomial","_learn_rate":0.89847326} 05-05 19:15:38.676 172.16.2.40:54321 16872 FJ-0-5 INFO: Dropping ignored columns: [] java.lang.AssertionError at water.util.MRUtils.sampleFrameStratified(MRUtils.java:132) at hex.tree.SharedTree$Driver.compute2(SharedTree.java:129) at water.H2O$H2OCountedCompleter.compute(H2O.java:682) 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@5164a171 java.lang.AssertionError at water.util.MRUtils.sampleFrameStratified(MRUtils.java:132) at hex.tree.SharedTree$Driver.compute2(SharedTree.java:129) at water.H2O$H2OCountedCompleter.compute(H2O.java:682) 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) probably has to do with max_after_balance_size being ridiculously small, but perhaps this should be handled better???
    via by Eric Eckstrand,
    • java.lang.AssertionError at water.util.MRUtils.sampleFrameStratified(MRUtils.java:132) at hex.tree.SharedTree$Driver.compute2(SharedTree.java:129) at water.H2O$H2OCountedCompleter.compute(H2O.java:682) 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)
    No Bugmate found.