保持常量列 h2o

Keep Constant Columns h2o

我正在尝试使用 R 的 h2o 包实现梯度提升机器模型。但是,该模型不断删除某个列,我从其他模型构建中知道该列很重要。

 Warning message:
    In .h2o.startModelJob(algo, params, h2oRestApiVersion) :
      Dropping bad and constant columns:['mycolumn']

如何阻止 h2o 删除此列?这是我尝试过的:

gbm_fit<-h2o.gbm(x,y,train_set,nfolds = 10,
                 ntrees = 250,
                 learn_rate = 0.15,
                 max_depth = 7,
                             validation_frame = validate_set,seed = 233,
                ignore_const_cols = F
                )

确保列 class 正确并被函数接受。