parameters - R 的 H2o GBM monotone_constraint 参数
问题描述
我正在尝试在 H2o GBM for R 中使用新的 monotone_constraint 功能。似乎没有任何示例,而且我不明白提供的文档所说的含义是什么
“表示单调约束的映射。使用 +1 强制增加约束,使用 -1 指定减少约束。”
gbm_1 <- h2o.gbm(
model_id = "gbm_1"
,x = xvars
,y = yvar
,training_frame = train
,distribution = "bernoulli"
,monotone_constraints = list("var1",1)
)
我得到的错误是 For input string: "list("var1""
解决方案
推荐阅读
- ansible - 有条件地包含 ansible 角色的变量文件
- kubernetes - 无法使用 kubectl 连接我的前端
- windows - 如何在没有 Git Bash 或 GUI 的情况下在 Windows 10 上安装 git?
- android - 带有协程的Android应用程序中的Scarlet websocket
- ios - 如何根据 UIPickerview 选择运行代码?
- c++ - 如何理解 `std::function` 的类型仅取决于其调用签名?
- marie - Marie JS 的力量
- postgresql - 如何在安装了 TimescaleDB 的 PostgreSQL 表上添加复合/复合索引?
- google-apps-script - 使用脚本编辑器将条件格式应用于多列
- ms-access - 如何使用count iif函数统计有多少学生通过了access?