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.92k stars 2k forks source link

Short-circuit evaluation may cause rapids errors later on #10494

Open exalate-issue-sync[bot] opened 1 year ago

exalate-issue-sync[bot] commented 1 year ago

{code} import h2o; h2o.init() fr = h2o.create_frame(cols=1, rows=10) fr[0] = 0 x = fr.runif() y = fr.ifelse(x, x+1) print(y) {code}

produces {code} Error: Name lookup of 'py_3_sid_a7db' failed Request: POST /99/Rapids data: {u'session_id': '_sid_a7db', u'ast': '(tmp= py_4_sid_a7db (ifelse (tmp= py_2_sid_a7db (:= py_1_sid_a7db 0 0 [])) (tmp= py_3_sid_a7db (h2o.runif py_2_sid_a7db -1)) (+ py_3_sid_a7db 1)))'} {code}

h2o-ops commented 1 year ago

JIRA Issue Migration Info

Jira Issue: PUBDEV-3587 Assignee: New H2O Bugs Reporter: Pasha Stetsenko State: Open Fix Version: N/A Attachments: N/A Development PRs: N/A