You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There’s an error if you used a {{fold_column}} arg for AutoML. This seems to be related to {{model@parameters$x}} storing extra columns (like {{fold_column}}).
aml <- h2o.automl(y = y, x = x,
training_frame = train,
fold_column = "fold",
max_models = 5,
seed = 1)
h2o.explain(aml, test){code}
Gives this error:
{code:r}Error in [.H2OFrame(newdata, , x) :
No column(s) 'fold' found in pclass,survived,name,sex,age,sibsp,parch,ticket,fare,cabin,embarked,boat,body,home.dest
In addition: Warning messages:
1: In doTryCatch(return(expr), name, parentenv, handler) :
Test/Validation dataset is missing column 'fold': substituting in a column of NaN
2: In doTryCatch(return(expr), name, parentenv, handler) :
Test/Validation dataset is missing column 'fold': substituting in a column of NaN{code}
The text was updated successfully, but these errors were encountered:
There’s an error if you used a {{fold_column}} arg for AutoML. This seems to be related to {{model@parameters$x}} storing extra columns (like {{fold_column}}).
{code:r}library(h2o)
h2o.init()
#Import the titanic dataset
f <- "https://s3.amazonaws.com/h2o-public-test-data/smalldata/gbm_test/titanic.csv"
titanic <- h2o.importFile(f)
Set response column as a factor
y <- "survived"
titanic[y] <- as.factor(titanic[y])
x <- c('home.dest', 'cabin', 'embarked')
Split the dataset into train and test & add fold column
splits <- h2o.splitFrame(titanic, seed = 1, ratios = c(0.8))
train <- splits[[1]]
test <- splits[[2]]
train$fold <- h2o.kfold_column(train, nfolds = 5, seed = 1)
aml <- h2o.automl(y = y, x = x,
training_frame = train,
fold_column = "fold",
max_models = 5,
seed = 1)
h2o.explain(aml, test){code}
Gives this error:
{code:r}Error in
[.H2OFrame
(newdata, , x) :No column(s) 'fold' found in pclass,survived,name,sex,age,sibsp,parch,ticket,fare,cabin,embarked,boat,body,home.dest
In addition: Warning messages:
1: In doTryCatch(return(expr), name, parentenv, handler) :
Test/Validation dataset is missing column 'fold': substituting in a column of NaN
2: In doTryCatch(return(expr), name, parentenv, handler) :
Test/Validation dataset is missing column 'fold': substituting in a column of NaN{code}
The text was updated successfully, but these errors were encountered: