Retip icon indicating copy to clipboard operation
Retip copied to clipboard

Fix setting of LightGBM max_bin parameter

Open ssmehta opened this issue 3 years ago • 2 comments

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

ssmehta avatar Oct 21 '21 09:10 ssmehta