Skip to content

Tag: lightgbm

`sklearn` asking for eval dataset when there is one

I am working on Stacking Regressor from sklearn and I used lightgbm to train my model. My lightgbm model has an early stopping option and I have used eval dataset and metric for this. When it feeds into the StackingRegressor, I saw this error ValueError: For early stopping, at least one dataset and eval metri…

LightGBM does not accept the dtypes of my data

I’m trying to use LGBMClassifier and for some reason, he does not accept the types of my data (all features are not accepted, I tested it). When we look at my data we can clearly see that all dtypes are either category, float or int (pd.DataFrame.info()) When I eventually try to train my LGBMClassifier …