We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2038e29 commit ea186ccCopy full SHA for ea186cc
molpipeline/experimental/explainability/visualization/visualization.py
@@ -288,9 +288,9 @@ def _add_shap_present_absent_features_text(
288
sum_absent_shap: float
289
The sum of the SHAP values for absent features.
290
"""
291
- if explanation.prediction[-1] is None:
+ if explanation.prediction is None:
292
raise AssertionError("Prediction value is None.")
293
- if explanation.expected_value[-1] is None:
+ if explanation.expected_value is None:
294
raise AssertionError("Expected value is None.")
295
296
color1 = "black"
0 commit comments