Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
76fb0b62
Unverified
Commit
76fb0b62
authored
Dec 05, 2021
by
James Lamb
Committed by
GitHub
Dec 05, 2021
Browse files
[R-package] remove support for '...' in Booster reset_parameter() (#4856)
parent
aa413f7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
12 deletions
+1
-12
R-package/R/lgb.Booster.R
R-package/R/lgb.Booster.R
+1
-12
No files found.
R-package/R/lgb.Booster.R
View file @
76fb0b62
...
@@ -177,23 +177,12 @@ Booster <- R6::R6Class(
...
@@ -177,23 +177,12 @@ Booster <- R6::R6Class(
},
},
reset_parameter
=
function
(
params
,
...
)
{
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."
))
}
if
(
methods
::
is
(
self
$
params
,
"list"
))
{
if
(
methods
::
is
(
self
$
params
,
"list"
))
{
params
<-
utils
::
modifyList
(
self
$
params
,
params
)
params
<-
utils
::
modifyList
(
self
$
params
,
params
)
}
}
params
<-
utils
::
modifyList
(
params
,
additional_params
)
params_str
<-
lgb.params2str
(
params
=
params
)
params_str
<-
lgb.params2str
(
params
=
params
)
self
$
restore_handle
()
self
$
restore_handle
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment