How to make LightGBM to suppress output?
I have tried for a while to figure out how to shut up LightGBM. Especially, I would like to suppress the output of LightGBM during training (i.e. feedback on the boosting steps).
My model:
params = {
'objective': 'regression',
'learning_rate' :0.9,
'max_depth' : 1,
'metric': 'mean_squared_error',
'seed': 7,
'boosting_type' : 'gbdt'
}
gbm = lgb.train(params,
lgb_train,
num_boost_round=100000,
valid_sets=lgb_eval,
early_stopping_rounds=100)
I tried to add verbose=0
as suggested in the docs, but this does not work.
https://github.com/microsoft/LightGBM/blob/master/docs/Parameters.rst
Does anyone know how to suppress LightGBM output during training?
Topic lightgbm boosting python
Category Data Science