Skip to content

Commit

Permalink
fixes for predictor tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Razdoburdin committed Nov 17, 2023
1 parent b62e47e commit 4546a23
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/python-sycl/test_sycl_prediction.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ def test_sklearn(self):
tm.make_dataset_strategy(), shap_parameter_strategy)
@settings(deadline=None)
def test_shap(self, num_rounds, dataset, param):
param.update({"device": "cpu"})
if dataset.name.endswith("-l1"): # not supported by the exact tree method
return
param.update({"tree_method": "hist", "device": "cpu"})
param = dataset.set_params(param)
dmat = dataset.get_dmat()
bst = xgb.train(param, dmat, num_rounds)
Expand All @@ -140,7 +142,9 @@ def test_shap(self, num_rounds, dataset, param):
tm.make_dataset_strategy(), shap_parameter_strategy)
@settings(deadline=None, max_examples=20)
def test_shap_interactions(self, num_rounds, dataset, param):
param.update({"device": "cpu"})
if dataset.name.endswith("-l1"): # not supported by the exact tree method
return
param.update({"tree_method": "hist", "device": "cpu"})
param = dataset.set_params(param)
dmat = dataset.get_dmat()
bst = xgb.train(param, dmat, num_rounds)
Expand Down

0 comments on commit 4546a23

Please sign in to comment.