Closed Zibi789 closed 6 years ago
@Zibi789 thanks very much! Would you like to create a PR to fix it ?
Yes, I can. How can I push a branch to LightGBM? It seems that I need a permission to do it.
@Zibi789 , you can fork into your own repo, fix the bug and send it back though https://github.com/Microsoft/LightGBM/compare
There is a bug in ResetGoss (file boosting/goss.hpp), lines 77 and 78. The buggy case is here:
Then
bag_data_cnt
is 0, andnew Dataset(bag_data_cnt)
generates an error message informing thatbag_data_cnt must be > 0
. The simplest way to fix it is to add this line after line 77:And then it is necessary to add the header file
algorithm