h2oai / h2o-3

H2O is an Open Source, Distributed, Fast & Scalable Machine Learning Platform: Deep Learning, Gradient Boosting (GBM) & XGBoost, Random Forest, Generalized Linear Modeling (GLM with Elastic Net), K-Means, PCA, Generalized Additive Models (GAM), RuleFit, Support Vector Machine (SVM), Stacked Ensembles, Automatic Machine Learning (AutoML), etc.
http://h2o.ai
Apache License 2.0
6.94k stars 2k forks source link

GLM run failure: pyunit_random_attack_medium.py #16370

Open wendycwong opened 3 months ago

wendycwong commented 3 months ago

Parse progress: |████████████████████████████████████████████████████████████████| (done) 100%

x: [6, 2, 8, 3, 7, 5, 1] y: 4 validation: True family: gamma max_iterations: 44 solver: AUTO standardize: True link: log alpha: [0.024055667605158204] lambda_search: True nlambdas: 5 beta_constraints: names lower_bounds upper_bounds PSA 0.177197 0.40905 AGE 0.985981 1.5303 GLEASON -0.625368 -0.260752 RACE 0.643774 1.06519 VOL 0.458305 0.632027 DCAPS 0.671396 1.38765 [6 rows x 3 columns]

glm Model Build progress: |████████/envs/h2o_env_python3.7/lib/python3.7/site-packages/h2o/job.py:81: UserWarning: Reached maximum number of iterations 4! warnings.warn(w) /envs/h2o_env_python3.7/lib/python3.7/site-packages/h2o/job.py:81: UserWarning: Reached maximum number of iterations 16! warnings.warn(w) /envs/h2o_env_python3.7/lib/python3.7/site-packages/h2o/job.py:81: UserWarning: Reached maximum number of iterations 37! warnings.warn(w) (failed) Traceback (most recent call last): File "/home/jenkins/slave_dir_from_mr-0xc1/workspace/2o-3-nightly-pipeline_rel-3.46.0/py3.7-medium-large/h2o-3/h2o-py/scripts/h2o-py-test-setup.py", line 186, in h2o_test_setup(sys.argv) File "/home/jenkins/slave_dir_from_mr-0xc1/workspace/2o-3-nightly-pipeline_rel-3.46.0/py3.7-medium-large/h2o-3/h2o-py/scripts/h2o-py-test-setup.py", line 181, in h2o_test_setup elif _ISPYUNIT: pyunit_utils.pyunit_exec(_TESTNAME) File "/home/jenkins/slave_dir_from_mr-0xc1/workspace/2o-3-nightly-pipeline_rel-3.46.0/py3.7-medium-large/h2o-3/h2o-py/tests/pyunit_utils/utilsPY.py", line 672, in pyunit_exec exec(pyunit_c, dict(name='main', file=test_path)) # forcing module name to ensure that the test behaves the same way as when executed using python my_test.py File "/home/jenkins/slave_dir_from_mr-0xc1/workspace/2o-3-nightly-pipeline_rel-3.46.0/py3.7-medium-large/h2o-3/h2o-py/tests/testdir_algos/glm/pyunit_random_attack_medium.py", line 119, in pyunit_utils.standalone_test(random_attack) File "/home/jenkins/slave_dir_from_mr-0xc1/workspace/2o-3-nightly-pipeline_rel-3.46.0/py3.7-medium-large/h2o-3/h2o-py/tests/pyunit_utils/utilsPY.py", line 694, in standalone_test test() File "/home/jenkins/slave_dir_from_mr-0xc1/workspace/2o-3-nightly-pipeline_rel-3.46.0/py3.7-medium-large/h2o-3/h2o-py/tests/testdir_algos/glm/pyunit_random_attack_medium.py", line 114, in random_attack attack("gamma", pros_train, pros_valid, random.sample([1, 2, 3, 5, 6, 7, 8], random.randint(1, 7)), 4) File "/home/jenkins/slave_dir_from_mr-0xc1/workspace/2o-3-nightly-pipeline_rel-3.46.0/py3.7-medium-large/h2o-3/h2o-py/tests/testdir_algos/glm/pyunit_random_attack_medium.py", line 67, in attack H2OGeneralizedLinearEstimator(**kwargs).train(x=x, y=y, training_frame=train, validation_frame=valid) File "/envs/h2o_env_python3.7/lib/python3.7/site-packages/h2o/estimators/estimator_base.py", line 107, in train self._train(parms, verbose=verbose) File "/envs/h2o_env_python3.7/lib/python3.7/site-packages/h2o/estimators/estimator_base.py", line 199, in _train job.poll(poll_updates=self._print_model_scoring_history if verbose else None) File "/envs/h2o_env_python3.7/lib/python3.7/site-packages/h2o/job.py", line 89, in poll "\n{}".format(self.job_key, self.exception, self.job["stacktrace"])) OSError: Job with key $03017f000001419cffffffff$_ac8e2a194a6182adb6213d68934b43eb failed with an exception: java.lang.ArrayIndexOutOfBoundsException: -1 stacktrace: java.lang.ArrayIndexOutOfBoundsException: -1 at hex.gram.Gram.dropCols(Gram.java:380) at hex.glm.ComputationState.computeNewGram(ComputationState.java:1432) at hex.glm.ComputationState.computeGram(ComputationState.java:1535) at hex.glm.GLM$GLMDriver.fitIRLSM(GLM.java:2301) at hex.glm.GLM$GLMDriver.fitModel(GLM.java:3310) at hex.glm.GLM$GLMDriver.computeSubmodel(GLM.java:3808) at hex.glm.GLM$GLMDriver.doCompute(GLM.java:3970) at hex.glm.GLM$GLMDriver.computeImpl(GLM.java:3843) at hex.ModelBuilder$Driver.compute2(ModelBuilder.java:253) at hex.glm.GLM$GLMDriver.compute2(GLM.java:1682) at water.H2O$H2OCountedCompleter.compute(H2O.java:1704) at jsr166y.CountedCompleter.exec(CountedCompleter.java:468) at jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263) at jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:976) at jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1479) at jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104)

Closing connection _sid_ae88 at exit