python: follow the default warning filters of Python (#2666)
* python: follow the default warning filters of Python https://docs.python.org/3/library/warnings.html#default-warning-filters * update tests * update tests
This commit is contained in:
committed by
Yuan (Terry) Tang
parent
178517524f
commit
8d15024ac7
@@ -13,8 +13,6 @@ from .training import train
|
||||
from .compat import (SKLEARN_INSTALLED, XGBModelBase,
|
||||
XGBClassifierBase, XGBRegressorBase, XGBLabelEncoder)
|
||||
|
||||
warnings.simplefilter('always', DeprecationWarning)
|
||||
|
||||
|
||||
def _objective_decorator(func):
|
||||
"""Decorate an objective function
|
||||
|
||||
Reference in New Issue
Block a user