Lightgbm early stopping not working propperly
问题 I'm using light gbm for some machine learning task. I want to use early stopping to find the optimal number of trees given a number of hyperparameters. However, lgbm stops growing trees while still improving on my evaluation metric. Below I've attached my specifications: params = { 'max_bin' : [128], 'num_leaves': [8], 'reg_alpha' : [1.2], 'reg_lambda' : [1.2], 'min_data_in_leaf' : [50], 'bagging_fraction' : [0.5], 'learning_rate' : [0.001] } mdl = lgb.LGBMClassifier(n_jobs=-1, n_estimators