Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[R-package] fix handling of duplicate parameters (fixes #4521) #4914

Merged
merged 2 commits into from
Dec 29, 2021

Conversation

jameslamb
Copy link
Collaborator

Fixes #4521.

When LightGBM's core library finds duplicates provided in params, it emits a warning-level log message and uses the value from the first instance of that parameter encountered while parsing parameters.

The R package doesn't enforce uniqueness of parameter names either, but due to a bug in how it converts an R list of parameters to a string, the warning message generated when duplicate parameters are passed is currently incorrect.

This PR proposes fixing that.

Copy link
Collaborator

@StrikerRUS StrikerRUS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for fixing this!

@StrikerRUS StrikerRUS merged commit ab78829 into master Dec 29, 2021
@StrikerRUS StrikerRUS deleted the fix/r-params2str branch December 29, 2021 23:53
@StrikerRUS StrikerRUS mentioned this pull request Jan 6, 2022
13 tasks
@jameslamb jameslamb mentioned this pull request Oct 7, 2022
40 tasks
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[R-package] Possibly-incorrect handling of duplicate parameters
2 participants