-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[python][R-package] removed duplicated code from language wrappers #2606
Conversation
@guolinke According to this commit, seems that LightGBM/python-package/lightgbm/basic.py Lines 1916 to 1917 in bbc45fe
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! I'm glad we can push more of this logic into the cpp side. Thank you!
@guolinke Can you please confirm this #2606 (comment)? |
@StrikerRUS it seems you are right. but I don't remember why |
Maybe in some point in the past it was possible to reset LightGBM/python-package/lightgbm/basic.py Lines 2691 to 2694 in f3afe98
Anyway, as at present resetting |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I re-reviewed since some time has passed since the PR was opened. R side still looks good to me!
Thanks @jameslamb ! I'm about to merge this PR, but want to make sure that @guolinke hasn't accidentally remembered why |
@StrikerRUS I think you can remove the |
Removed checks from language wrappers that are handled at cpp side.
LightGBM/src/c_api.cpp
Lines 176 to 187 in bbc45fe