r - 保持恒定列 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
)
解决方案
Make sure the column class is correct and accepted by the function.
推荐阅读
- python - Django Listview FormMixin
- ansible - ansible playbook 执行并且没有显示错误,但没有在主机上执行预期的操作
- php - 我如何在不重复自己的情况下更好地编写此语句,它需要使用简单的 html dom 的值
- android - Android Studio - 加载小部件时出现问题(切换/切换)
- javascript - 如何将数据从 javascript 发送到 python 烧瓶后端?
- java - java - 如何通过java中的selenium在弹出框中发送用户名和密码?
- apache-kafka - FlinkRunner 上的 ApacheBeam 不从 Kafka 读取
- swift - 如何检查一个键是否等于 swift 字典中的一个值?
- reactjs - React-Table - 如何在 Material-UI 表中将 useResizeColumns 与粘性标题结合起来
- java - ReactionEmojis 如何在 discord4j 3.1.0 中工作