objective reg:squaredlogerror 在 xgboost 的 r 实现中不存在?
objective reg:squaredlogerror dos not exist in r implementation of xgboost?
我在 r 中使用 xgboost 库。我的模型似乎 运行 默认 objective reg:squarederror
这 运行 在我的代码中没问题,例如
model_regression = map2(.x = dtrain_regression, .y = nrounds, ~xgboost(.x, nrounds = .y, objective = "reg:squarederror")))
Reading the docs,还有一个潜在的 objective 列出,reg:squaredlogerror
。我想试验一下 objective:
model_regression = map2(.x = dtrain_regression, .y = nrounds, ~xgboost(.x, nrounds = .y, objective = "reg:squaredlogerror")))
但是,当我 运行 使用此变体时,我收到一条错误消息,指出此 objective 未知。
是否可以在 xgboost in r 中使用 objective reg:squaredlogerror
?
尝试将 reg:linear 用作 objective,它将起作用:)
您需要最新的 xgboost。使用 install_github
安装它,请参阅说明 here
(不要指望 CRAN 拥有最新版本的软件包,尤其是如果开发非常活跃(如 xgboost),它会滞后一个发布周期。通常最新的开发版本将在 github )
我在 r 中使用 xgboost 库。我的模型似乎 运行 默认 objective reg:squarederror
这 运行 在我的代码中没问题,例如
model_regression = map2(.x = dtrain_regression, .y = nrounds, ~xgboost(.x, nrounds = .y, objective = "reg:squarederror")))
Reading the docs,还有一个潜在的 objective 列出,reg:squaredlogerror
。我想试验一下 objective:
model_regression = map2(.x = dtrain_regression, .y = nrounds, ~xgboost(.x, nrounds = .y, objective = "reg:squaredlogerror")))
但是,当我 运行 使用此变体时,我收到一条错误消息,指出此 objective 未知。
是否可以在 xgboost in r 中使用 objective reg:squaredlogerror
?
尝试将 reg:linear 用作 objective,它将起作用:)
您需要最新的 xgboost。使用 install_github
安装它,请参阅说明 here
(不要指望 CRAN 拥有最新版本的软件包,尤其是如果开发非常活跃(如 xgboost),它会滞后一个发布周期。通常最新的开发版本将在 github )