R 的 H2o GBM monotone_constraint 参数
H2o GBM monotone_constraint parameter for R
我正在尝试使用 H2o GBM for R 中的新 monotone_constraint 功能。似乎没有任何示例,而且我不明白所提供的文档在说
"A mapping representing monotonic constraints. Use +1 to enforce an increasing constraint and -1 to specify a decreasing constraint."
gbm_1 <- h2o.gbm(
model_id = "gbm_1"
,x = xvars
,y = yvar
,training_frame = train
,distribution = "bernoulli"
,monotone_constraints = list("var1",1)
)
我得到的错误是
对于输入字符串:"list("var1""
我正在尝试使用 H2o GBM for R 中的新 monotone_constraint 功能。似乎没有任何示例,而且我不明白所提供的文档在说
"A mapping representing monotonic constraints. Use +1 to enforce an increasing constraint and -1 to specify a decreasing constraint."
gbm_1 <- h2o.gbm(
model_id = "gbm_1"
,x = xvars
,y = yvar
,training_frame = train
,distribution = "bernoulli"
,monotone_constraints = list("var1",1)
)
我得到的错误是 对于输入字符串:"list("var1""