Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The .getAlgo() Method of Pysparkling H2OGridSearch Throws Exception #3817

Closed
exalate-issue-sync bot opened this issue May 22, 2023 · 2 comments
Closed
Assignees

Comments

@exalate-issue-sync
Copy link

It happens if getAlgo() is called for the third time and more.

{{>>> from pysparkling.ml import H2OGridSearch, H2OGBM}}

{{>>> grid = H2OGridSearch(labelCol="AGE", hyperParameters={"_seed": [1, 2, 3]}, splitRatio=0.8, algo=H2OGBM(), strategy="RandomDiscrete", maxModels=3, maxRuntimeSecs=60, selectBestModelBy="RMSE")}}

{{>>> grid.getAlgo()}}

{{H2OGBM_8fe5b86812f7}}

{{>>> grid.getAlgo()}}

{{H2OGBM_8fe5b86812f7}}

{{>>> grid.getAlgo()}}

{{Traceback (most recent call last):}}

{{File "", line 1, in }}

{{File "/private/var/folders/90/mnytclln4yxcykll81knhmzm0000gn/T/spark-f4cdaf5d-e18a-4699-8dfd-3e86f9339b76/userFiles-76281c45-e743-4c79-addf-18f4611d9d13/h2o_pysparkling_2.4-3.32.0.1-1-2.4.zip/ai/h2o/sparkling/ml/params/H2OGridSearchParams.py", line 95, in getAlgo}}

{{File "/Users/marek/software/spark/spark-2.4.4-bin-hadoop2.7/python/lib/py4j-0.10.7-src.zip/py4j/java_gateway.py", line 1257, in call}}

{{File "/Users/marek/software/spark/spark-2.4.4-bin-hadoop2.7/python/pyspark/sql/utils.py", line 63, in deco}}

{{return f(*a, **kw)}}

{{File "/Users/marek/software/spark/spark-2.4.4-bin-hadoop2.7/python/lib/py4j-0.10.7-src.zip/py4j/protocol.py", line 332, in get_return_value}}

{{py4j.protocol.Py4JError: An error occurred while calling o80.parameters. Trace:}}

{{py4j.Py4JException: Target Object ID does not exist for this gateway :o80}}

{{at py4j.Gateway.invoke(Gateway.java:279)}}

{{at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132)}}

{{at py4j.commands.CallCommand.execute(CallCommand.java:79)}}

{{at py4j.GatewayConnection.run(GatewayConnection.java:238)}}

{{at java.lang.Thread.run(Thread.java:748)}}

or if the algo set via the setter.

{{>>> from pysparkling.ml import H2OGridSearch, H2OGBM, H2OGLM}}

{{>>> grid = H2OGridSearch(labelCol="AGE", hyperParameters={"_seed": [1, 2, 3]}, splitRatio=0.8, algo=H2OGBM(), strategy="RandomDiscrete", maxModels=3, maxRuntimeSecs=60, selectBestModelBy="RMSE")}}

{{>>> grid.getAlgo()}}

{{Traceback (most recent call last):}}

{{File "", line 1, in }}

{{File "/private/var/folders/90/mnytclln4yxcykll81knhmzm0000gn/T/spark-f4cdaf5d-e18a-4699-8dfd-3e86f9339b76/userFiles-76281c45-e743-4c79-addf-18f4611d9d13/h2o_pysparkling_2.4-3.32.0.1-1-2.4.zip/ai/h2o/sparkling/ml/params/H2OGridSearchParams.py", line 95, in getAlgo}}

{{File "/Users/marek/software/spark/spark-2.4.4-bin-hadoop2.7/python/lib/py4j-0.10.7-src.zip/py4j/java_gateway.py", line 1257, in call}}

{{File "/Users/marek/software/spark/spark-2.4.4-bin-hadoop2.7/python/pyspark/sql/utils.py", line 63, in deco}}

{{return f(*a, **kw)}}

{{File "/Users/marek/software/spark/spark-2.4.4-bin-hadoop2.7/python/lib/py4j-0.10.7-src.zip/py4j/protocol.py", line 332, in get_return_value}}

{{py4j.protocol.Py4JError: An error occurred while calling o2403.parameters. Trace:}}

{{py4j.Py4JException: Target Object ID does not exist for this gateway :o2403}}

{{at py4j.Gateway.invoke(Gateway.java:279)}}

{{at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132)}}

{{at py4j.commands.CallCommand.execute(CallCommand.java:79)}}

{{at py4j.GatewayConnection.run(GatewayConnection.java:238)}}

{{at java.lang.Thread.run(Thread.java:748)}}

@DinukaH2O
Copy link

JIRA Issue Migration Info

Jira Issue: SW-2276
Assignee: Jakub Hava
Reporter: Marek Novotny
State: Resolved
Fix Version: 3.30.0.4-1
Attachments: N/A
Development PRs: Available

Linked PRs from JIRA

#2145

@hasithjp
Copy link
Member

JIRA Issue Migration Info Cont'd

Jira Issue Created Date: 2020-05-28T06:37:29.650-0700

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants