From 7f16aa4166a2cce4aa7d6c573514db6f0d84d5e1 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..bceae99d13d2 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(size=100) d.feature_weights = fw eval_res_0 = {}