Commit 98c6efe3 authored by Alex's avatar Alex Committed by Guolin Ke
Browse files

Fix argument "params" is missing, with no default when using custom (#1254)

objective funciton in reset_parameter()

Fixes error algb.params2str to lgb.params2str
parent 5f2d5618
......@@ -167,7 +167,7 @@ Booster <- R6Class(
# Append parameters
params <- append(params, list(...))
params_str <- algb.params2str(params)
params_str <- lgb.params2str(params)
# Reset parameters
lgb.call("LGBM_BoosterResetParameter_R",
......@@ -222,7 +222,7 @@ Booster <- R6Class(
stop("lgb.Booster.update: fobj should be a function")
}
if (!private$set_objective_to_none) {
self$reset_parameter(objective="none")
self$reset_parameter(params = list(objective = "none"))
private$set_objective_to_none = TRUE
}
# Perform objective calculation
......
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