Skip to content

Commit

Permalink
(keras image) Assert that we have 1 target in explanation only
Browse files Browse the repository at this point in the history
  • Loading branch information
teabolt committed Aug 5, 2019
1 parent 87cafea commit 0a4db99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions eli5/formatters/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ def format_as_image(expl, # type: Explanation
# no heatmaps
return image
else:
assert len(expl.targets) == 1
heatmap = expl.targets[0].heatmap
_validate_heatmap(heatmap)

Expand Down

0 comments on commit 0a4db99

Please sign in to comment.