h2oai / h2o4gpu

H2Oai GPU Edition
Apache License 2.0
460 stars 95 forks source link

NameError: name 'output_margin' is not defined #876

Open nash73b91203005 opened 2 years ago

nash73b91203005 commented 2 years ago

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