Unverified Commit 07275da3 authored by Guolin Ke's avatar Guolin Ke Committed by GitHub
Browse files

[python] output warning when `silent=True` in sklern

parent c97abff4
...@@ -396,7 +396,7 @@ class LGBMModel(_LGBMModelBase): ...@@ -396,7 +396,7 @@ class LGBMModel(_LGBMModelBase):
params.setdefault('nthread', params.pop('n_jobs')) params.setdefault('nthread', params.pop('n_jobs'))
# user can set verbose with kwargs, it has higher priority # user can set verbose with kwargs, it has higher priority
if 'verbose' not in params and self.silent: if 'verbose' not in params and self.silent:
params['verbose'] = -1 params['verbose'] = 0
params.pop('silent', None) params.pop('silent', None)
params.pop('n_estimators', None) params.pop('n_estimators', None)
params.pop('class_weight', None) params.pop('class_weight', None)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment