h2oai/pystacknet

How to pass additional parameters to fit() method of LightGBM?

dkozlov opened this issue · 2 comments

Now I am getting "TypeError: fit() got an unexpected keyword argument 'early_stopping_rounds'"

You could subclass LGBMClassifier, and override the fit method to call the parent's fit method with the parameters you need.

You could subclass LGBMClassifier, and override the fit method to call the parent's fit 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?