Skip to content

Commit ea186cc

Browse files
mypy
1 parent 2038e29 commit ea186cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

molpipeline/experimental/explainability/visualization/visualization.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,9 +288,9 @@ def _add_shap_present_absent_features_text(
288288
sum_absent_shap: float
289289
The sum of the SHAP values for absent features.
290290
"""
291-
if explanation.prediction[-1] is None:
291+
if explanation.prediction is None:
292292
raise AssertionError("Prediction value is None.")
293-
if explanation.expected_value[-1] is None:
293+
if explanation.expected_value is None:
294294
raise AssertionError("Expected value is None.")
295295

296296
color1 = "black"

0 commit comments

Comments
 (0)