"src/vscode:/vscode.git/clone" did not exist on "76102284d1997ef8b876cb40ae7c3e44b6ffbb66"
Unverified Commit 76fb0b62 authored by James Lamb's avatar James Lamb Committed by GitHub
Browse files

[R-package] remove support for '...' in Booster reset_parameter() (#4856)

parent aa413f7e
......@@ -177,23 +177,12 @@ Booster <- R6::R6Class(
},
reset_parameter = function(params, ...) {
additional_params <- list(...)
if (length(additional_params) > 0L) {
warning(paste0(
"Booster$reset_parameter(): Found the following passed through '...': "
, paste(names(additional_params), collapse = ", ")
, ". These will be used, but in future releases of lightgbm, this warning will become an error. "
, "Add these to 'params' instead."
))
}
reset_parameter = function(params) {
if (methods::is(self$params, "list")) {
params <- utils::modifyList(self$params, params)
}
params <- utils::modifyList(params, additional_params)
params_str <- lgb.params2str(params = params)
self$restore_handle()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment