File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
60
60
- Fixed failing unit tests
61
61
([ dsgibbons #29 ] ( https://github.com/dsgibbons/shap/pull/29 ) by @dsgibbons ,
62
62
[ dsgibbons #20 ] ( https://github.com/dsgibbons/shap/pull/20 ) by @simonangerbauer ,
63
+ [ #3044 ] ( https://github.com/slundberg/shap/pull/3044 ) by @connortann ,
63
64
[ dsgibbons #24 ] ( https://github.com/dsgibbons/shap/pull/24 ) by @connortann ).
64
65
- Include CUDA GPU C extension files in the source distribution
65
66
([ #3009 ] ( https://github.com/slundberg/shap/pull/3009 ) by @jklaise ).
Original file line number Diff line number Diff line change 2
2
import itertools
3
3
import math
4
4
import pickle
5
+ import sys
5
6
6
7
import numpy as np
7
8
import pandas as pd
@@ -203,7 +204,13 @@ def test_ngboost():
203
204
explainer .shap_values (X ).sum (1 ) + explainer .expected_value - model .predict (X ))) < 1e-5
204
205
205
206
206
- def test_pyspark_classifier_decision_tree ():
207
+ @pytest .fixture
208
+ def configure_pyspark_python (monkeypatch ):
209
+ monkeypatch .setenv ("PYSPARK_PYTHON" , sys .executable )
210
+ monkeypatch .setenv ("PYSPARK_DRIVER_PYTHON" , sys .executable )
211
+
212
+
213
+ def test_pyspark_classifier_decision_tree (configure_pyspark_python ):
207
214
# pylint: disable=bare-except
208
215
pyspark = pytest .importorskip ("pyspark" )
209
216
pytest .importorskip ("pyspark.ml" )
@@ -258,7 +265,7 @@ def test_pyspark_classifier_decision_tree():
258
265
spark .stop ()
259
266
260
267
261
- def test_pyspark_regression_decision_tree ():
268
+ def test_pyspark_regression_decision_tree (configure_pyspark_python ):
262
269
# pylint: disable=bare-except
263
270
pyspark = pytest .importorskip ("pyspark" )
264
271
pytest .importorskip ("pyspark.ml" )
You can’t perform that action at this time.
0 commit comments