保持水柱恒定

问题描述 投票:0回答:2

我正在尝试使用 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
                )
r machine-learning h2o gbm
2个回答
1
投票

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


0
投票

我将所有字符列更改为因子,这解决了问题。我正在使用

h2o.automl

© www.soinside.com 2019 - 2024. All rights reserved.