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

NameError: name 'output_margin' is not defined #876

Open
nash73b91203005 opened this issue Jun 13, 2022 · 0 comments
Open

NameError: name 'output_margin' is not defined #876

nash73b91203005 opened this issue Jun 13, 2022 · 0 comments

Comments

@nash73b91203005
Copy link

Hi Developers,

I just downloaded the h2o4gpu package for R 3.5.2 and tried running the examples. While running the gradient boosting classifier, i got the following error :

System Information :

R : 3.5.2
Cuda : 11.4
Python: 3.6

Code :

train <- read.csv("https://s3.amazonaws.com/erin-data/higgs/higgs_train_10k.csv")
test <- read.csv("https://s3.amazonaws.com/erin-data/higgs/higgs_test_5k.csv")

x_train <- train[, -1]
y_train <- train[, 1]
x_test <- test[, -1]
y_test <- test[, 1]

h2o4gpu.gradient_boosting_classifier(n_estimators = 500, subsample = 0.8)
model_gbc <- h2o4gpu.gradient_boosting_classifier() %>% fit(x_train, y_train)
pred_gbc <- model_gbc %>% predict(x_test, type = "prob")

Error :

Error in py_call_impl(callable, dots$args, dots$keywords) :
NameError: name 'output_margin' is not defined

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

No branches or pull requests

1 participant