File tree Expand file tree Collapse file tree 2 files changed +0
-19
lines changed Expand file tree Collapse file tree 2 files changed +0
-19
lines changed Original file line number Diff line number Diff line change 13
13
from .compat import (SKLEARN_INSTALLED , XGBModelBase ,
14
14
XGBClassifierBase , XGBRegressorBase , XGBLabelEncoder )
15
15
16
- warnings .simplefilter ('always' , DeprecationWarning )
17
-
18
16
19
17
def _objective_decorator (func ):
20
18
"""Decorate an objective function
Original file line number Diff line number Diff line change 2
2
import random
3
3
import xgboost as xgb
4
4
import testing as tm
5
- import warnings
6
5
from nose .tools import raises
7
6
8
7
rng = np .random .RandomState (1994 )
@@ -340,14 +339,6 @@ def test_sklearn_random_state():
340
339
assert clf .get_xgb_params ()['seed' ] == 401
341
340
342
341
343
- def test_seed_deprecation ():
344
- tm ._skip_if_no_sklearn ()
345
- warnings .simplefilter ("always" )
346
- with warnings .catch_warnings (record = True ) as w :
347
- xgb .XGBClassifier (seed = 1 ).get_xgb_params ()
348
- assert w [0 ].category == DeprecationWarning
349
-
350
-
351
342
def test_sklearn_n_jobs ():
352
343
tm ._skip_if_no_sklearn ()
353
344
@@ -358,14 +349,6 @@ def test_sklearn_n_jobs():
358
349
assert clf .get_xgb_params ()['nthread' ] == 2
359
350
360
351
361
- def test_nthread_deprecation ():
362
- tm ._skip_if_no_sklearn ()
363
- warnings .simplefilter ("always" )
364
- with warnings .catch_warnings (record = True ) as w :
365
- xgb .XGBClassifier (nthread = 1 ).get_xgb_params ()
366
- assert w [0 ].category == DeprecationWarning
367
-
368
-
369
352
def test_kwargs ():
370
353
tm ._skip_if_no_sklearn ()
371
354
You can’t perform that action at this time.
0 commit comments