Retip
Retip copied to clipboard
Fix setting of LightGBM max_bin parameter
As of LightGBM v3.0, the max_bin parameter is to be set in the lgb.Dataset()
instead of lgb.train()
and lgb.cv()
. Otherwise, it fails with the error:
[LightGBM] [Fatal] Cannot change max_bin after constructed Dataset handle.
See also: https://github.com/microsoft/LightGBM/issues/4019