-
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
Fix Integer Overflow #2357 #2400
Conversation
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.
Please use two-space indent, not 4.
Fixed. We could add an https://editorconfig.org/ file to automatically configure editor settings for people who use it. Example |
How about simple explicit prohibition of large
LightGBM/include/LightGBM/config.h Lines 214 to 216 in b310fb4
|
Thanks a lot! Cool feature! I'm adding this to our feature requests (#2302) near the cpp lint test request. Refer to #2401. |
I'm not super familiar with tuning LightGBM yet, but I don't think we want to limit I would also consider this a significant change and should be discussed outside the scope of this bug fix. |
@StrikerRUS |
@guolinke @StrikerRUS Would you like anything else added to this pr? Should I add tests or update docs? |
ping @StrikerRUS for the test and doc. |
@chris-smith-zocdoc @guolinke I think that new fatal error message is quite clear and no clarifications in docs are needed. |
Thanks @StrikerRUS I think this is ready to merge then. |
Move check outside the max_depth check
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.
@chris-smith-zocdoc Thanks a lot!
@guolinke Can we merge this? |
Fixes #2357
Please let me know if this is what you meant in your comment @guolinke
Where should I add tests for this?