-
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
create buffer for gradients and hessians with goss and customized objective (fixes #3243) #3263
Conversation
Hi @shiyu1994 , can we only fix this in goss.hpp. It seems the normal GBDT is not affected. |
The code of normal GBDT is only modified to include two more parameters The original Is there a better way to do this or any other suggestion? |
I was thinking to override the |
Ok. That seems more elegant. I'll modify this. |
Compilation of current
I believe it was introduced here. BTW, it is quite strange that CI allowed to merge this PR. |
@StrikerRUS sorry, it is my bad! |
Ah, OK! Thanks a lot for the prompt fix! |
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. |
This is to fix Issue #3243.
The gradients_ and hessians_ of GBDT object is of size 0 if customized objective function is used.
However, they are used by the bagging function of GOSS, for example
which causes the segment fault.