From c4c9959ae807c945f5b98215863bca6a226c9dbd Mon Sep 17 00:00:00 2001 From: fis Date: Fri, 31 Jul 2020 18:05:47 +0800 Subject: [PATCH] Fix test. --- tests/python/test_dmatrix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/python/test_dmatrix.py b/tests/python/test_dmatrix.py index 068678b85a25..f942f70ece69 100644 --- a/tests/python/test_dmatrix.py +++ b/tests/python/test_dmatrix.py @@ -75,7 +75,7 @@ def test_slice(self): X = rng.randn(100, 100) y = rng.randint(low=0, high=3, size=100) d = xgb.DMatrix(X, y) - fw = rng.randn(100) + fw = rng.uniform(100) d.feature_weights = fw eval_res_0 = {}