Skip to content

Commit

Permalink
mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
JochenSiegWork committed Jan 15, 2025
1 parent 2038e29 commit ea186cc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,9 @@ def _add_shap_present_absent_features_text(
sum_absent_shap: float
The sum of the SHAP values for absent features.
"""
if explanation.prediction[-1] is None:
if explanation.prediction is None:
raise AssertionError("Prediction value is None.")
if explanation.expected_value[-1] is None:
if explanation.expected_value is None:
raise AssertionError("Expected value is None.")

color1 = "black"
Expand Down

0 comments on commit ea186cc

Please sign in to comment.