Skip to content

Add C API function that returns all parameter names with their aliases - #4829

Merged
jameslamb merged 17 commits into
masterfrom
param_aliases
Dec 3, 2021
Merged

jameslamb merged 17 commits into
masterfrom
param_aliases

Conversation

@StrikerRUS

Copy link
Copy Markdown
Collaborator

Fixed #2633

@StrikerRUS StrikerRUS changed the title Add C API function that returns all parameter names with their aliases [WIP] Add C API function that returns all parameter names with their aliases Nov 27, 2021
Comment thread R-package/R/aliases.R Resolved
@StrikerRUS StrikerRUS changed the title [WIP] Add C API function that returns all parameter names with their aliases Add C API function that returns all parameter names with their aliases Nov 27, 2021
@StrikerRUS

Copy link
Copy Markdown
Collaborator Author

OK, I believe this PR is ready for reviews.

@jameslamb jameslamb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is awesome! I totally support this addition to the API. I think it'll help to avoid some maintenance burden in language wrappers and will eliminate some possible bugs. Great work 🀩

Please see a few small comments I left.

Comment thread R-package/R/aliases.R Resolved
Comment thread R-package/R/aliases.R Resolved
Comment thread include/LightGBM/config.h Resolved
Comment thread tests/python_package_test/test_basic.py Resolved
Comment thread python-package/lightgbm/basic.py Resolved
Co-authored-by: James Lamb <jaylamb20@gmail.com>
@jameslamb
jameslamb self-requested a review December 2, 2021 02:30
@StrikerRUS

Copy link
Copy Markdown
Collaborator Author

@jameslamb Thanks a lot for your review comments! I think I've addressed them all in the latest commit. Please take another look when have time.

@jameslamb

jameslamb commented Dec 2, 2021 •

Copy link
Copy Markdown
Member

/gha run r-valgrind

Workflow R valgrind tests has been triggered! πŸš€
https://github.com/microsoft/LightGBM/actions/runs/1532674754

Status: success βœ”οΈ.

@jameslamb jameslamb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks great, thanks for the changes, especially the new R test!

Since this touched lightgbm_R.cpp, I just did a valgrind run (sorry for not thinking of that sooner). #4829 (comment)

As soon as that passes, I'm comfortable with merging this.

@jameslamb

Copy link
Copy Markdown
Member

@shiyu1994 do you support this addition to c_api.cpp? I think changes to that file should probably have two approvals, just since it is the core public API of LightGBM.

@shiyu1994 shiyu1994 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@StrikerRUS @jameslamb Thank you for working on this! I've checked the C API, and the changes LGTM.

@github-actions

Copy link
Copy Markdown
Contributor

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.

Add C API function that returns all parameter names with their aliases

3 participants