Skip to content

Commit

Permalink
Fix moved test.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Oct 5, 2020
1 parent 45d1e96 commit c488678
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/python-gpu/test_gpu_basic_models.py
Expand Up @@ -5,12 +5,12 @@
import xgboost as xgb
sys.path.append("tests/python")
# Don't import the test class, otherwise they will run twice.
import test_basic_models as test_bm # noqa
import test_callback as test_cb # noqa
rng = np.random.RandomState(1994)


class TestGPUBasicModels(unittest.TestCase):
cputest = test_bm.TestModels()
cputest = test_cb.TestCallbacks()

def run_cls(self, X, y, deterministic):
cls = xgb.XGBClassifier(tree_method='gpu_hist',
Expand All @@ -36,7 +36,8 @@ def run_cls(self, X, y, deterministic):
return hash(model_0), hash(model_1)

def test_eta_decay_gpu_hist(self):
self.cputest.run_eta_decay('gpu_hist')
self.cputest.run_eta_decay('gpu_hist', True)
self.cputest.run_eta_decay('gpu_hist', False)

def test_deterministic_gpu_hist(self):
kRows = 1000
Expand Down

0 comments on commit c488678

Please sign in to comment.