-
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
lightgbm is killed for extreme parameter values #687
Comments
@geoHeil you can try to set the parameter |
I will try this, but assuming it might still fail - is there a way. I can catch this like an exception and report a failure to the optimization process? editThe following snippet is trying to handle the signals
Where @guolinke how can limiting the memory by the suggested parameter help? Will lightGBM then perform some mini batch operation if the memory is deliberately limited? |
#562 is an interesting read and |
@geoHeil do not use such large parameter value as they are unpractical (and never yielding good performance especially in hyperparameter tuning, other than slowing down tuning):
It is so big it will require a massive amount of RAM. Even 4095 (2^12 - 1) is already a lot and too much for most cases. For instance, I expect a 150GB dataset in RAM to require hundred of TBs with such number of leaves.
try:
my_learning_task()
except:
my_fallback_task() does not work in Python for LightGBM? |
Thanks. Simply catching the exception is not enough for me. A combination of
|
This issue 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. |
During hyper parameter optimization a wide range of parameters is tried. Some might be considered extreme values. For some of these lightGBM is killed. I think this is a segmentation fault. I would like to catch the thing. It is not an exception. So far I could not catch the signal. I want to handle the signal somehow and send the. failure to the optimization code.
Environment info
Operating System: osx 10.12.5
CPU: MacBook Pro (15-inch, 2017) / 3,1 GHz Intel Core i7
C++/Python/R version: latest from GitHub; python
Error Message:
for suggested parameters of optimization process of:
and fixed parameters of:
The text was updated successfully, but these errors were encountered: