java.lang.AssertionError: x out of bounds, expected <0,1> range, got NaN

Description

What does this error mean, and what could I do to fix it? My model was GLM, family="binomial"/bernoulli

OSError: Job with key $03017f00000132d4ffffffff$_81d37275494948c594e6a96b2b994536 failed with an exception: java.lang.AssertionError: x out of bounds, expected <0,1> range, got NaN
stacktrace:
java.lang.AssertionError: x out of bounds, expected <0,1> range, got NaN
at hex.glm.GLMModel$GLMWeightsFun.link(GLMModel.java:547)
at hex.glm.GLM.getNullBeta(GLM.java:358)
at hex.glm.GLM.init(GLM.java:504)
at hex.glm.GLM.computeCrossValidation(GLM.java:96)
at hex.ModelBuilder.trainModelNested(ModelBuilder.java:329)
at hex.ModelBuilder$TrainModelNestedRunnable.run(ModelBuilder.java:363)
at water.H2O.runOnH2ONode(H2O.java:1236)
at water.H2O.runOnH2ONode(H2O.java:1229)
at hex.ModelBuilder.trainModelNested(ModelBuilder.java:344)
at hex.grid.GridSearch.buildModel(GridSearch.java:343)
at hex.grid.GridSearch.gridSearch(GridSearch.java:220)
at hex.grid.GridSearch.access$000(GridSearch.java:70)
at hex.grid.GridSearch$1.compute2(GridSearch.java:137)
at water.H2O$H2OCountedCompleter.compute(H2O.java:1348)
at jsr166y.CountedCompleter.exec(CountedCompleter.java:468)
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)

I have looked at the existing solved issue on here. It looks like it has to do with missing value?

Activity

Show:
Alex Xu
January 17, 2019, 4:35 PM

The problem probably stems from h2oframe slicing. I used sklearn's train_test_split function then reuploaded each sliced train test frame into h2o. The Logistic Reg ran.

This is compared to creating a train-test split in h2o, then running a glm on the sliced version of that train-test split. This got the error that I obtained above

Lauren DiPerna
January 17, 2019, 7:51 PM

did you resolve your issue? if not can you post a reproducible code snippet of what you did? (a quick note, make sure you pass in H2OFrame's into H2O models).

Assignee

Unassigned

Reporter

Alex Xu

Labels

Priority

Major
Configure