How to pass additional parameters to fit() method of LightGBM?
dkozlov opened this issue · 2 comments
dkozlov commented
Now I am getting "TypeError: fit() got an unexpected keyword argument 'early_stopping_rounds'"
ajnisbet commented
You could subclass LGBMClassifier
, and override the fit
method to call the parent's fit
method with the parameters you need.
ibozkurt79 commented
You could subclass
LGBMClassifier
, and override thefit
method to call the parent'sfit
method with the parameters you need.
Same issue here. Without early_stopping, it overfits. So, I need a way to improve the code. @ajnisbet can you give a short example what you mean by subclassing fit method?