首页 > 解决方案 > 保持恒定列 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
                )

标签: rmachine-learningh2ogbm

解决方案


Make sure the column class is correct and accepted by the function.


推荐阅读