Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and dsgibbons committed Aug 22, 2023
1 parent 565b48f commit 5c994fd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/plots/test_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def test_simple_bar_with_cohorts_dict():

def test_bar_legacy_deprecation_warning(explainer):
rs = np.random.RandomState(42)
fig = plt.figure()
plt.figure()
with pytest.warns(FutureWarning, match="bar_legacy is being deprecated in Version 0.43.0"):
shap.plots._bar.bar_legacy({
"t1": shap.Explanation(
Expand Down
4 changes: 2 additions & 2 deletions tests/plots/test_beeswarm.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ def test_simple_beeswarm(explainer):

def test_summary_legacy_deprecation_warning(explainer):
shap_values = explainer(explainer.data)
fig = plt.figure()
plt.figure()
with pytest.warns(FutureWarning, match="summary_legacy is being deprecated in Version 0.43.0"):
shap.plots._beeswarm.summary_legacy(shap_values)
shap.plots._beeswarm.summary_legacy(shap_values)
4 changes: 2 additions & 2 deletions tests/plots/test_waterfall.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ def test_waterfall_plot_for_decision_tree_explanation():

def test_waterfall_legacy_deprecation_warning(explainer):
shap_values = explainer.shap_values(explainer.data)
fig = plt.figure()
plt.figure()
with pytest.warns(FutureWarning, match="waterfall_legacy is being deprecated in Version 0.43.0"):
shap.plots._waterfall.waterfall_legacy(explainer.expected_value, shap_values[0])
shap.plots._waterfall.waterfall_legacy(explainer.expected_value, shap_values[0])

0 comments on commit 5c994fd

Please sign in to comment.