Use upstream URI in distributed quantile tests. (#7129)
* Use upstream URI in distributed quantile tests. * Fix test cv `PytestAssertRewriteWarning`.
This commit is contained in:
@@ -136,9 +136,9 @@ class TestRanking:
|
||||
cv = xgboost.cv(self.params, self.dtrain, num_boost_round=2500,
|
||||
early_stopping_rounds=10, nfold=10, as_pandas=False)
|
||||
assert isinstance(cv, dict)
|
||||
assert (set(cv.keys()) == {'test-ndcg-mean', 'train-ndcg-mean', 'test-ndcg-std',
|
||||
'train-ndcg-std'},
|
||||
'CV results dict key mismatch.')
|
||||
assert set(cv.keys()) == {
|
||||
'test-ndcg-mean', 'train-ndcg-mean', 'test-ndcg-std', 'train-ndcg-std'
|
||||
}, "CV results dict key mismatch."
|
||||
|
||||
def test_cv_no_shuffle(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user