Skip to content

Commit

Permalink
fix(XAI): added missing inverse of occlusion sensitivity heatmap
Browse files Browse the repository at this point in the history
  • Loading branch information
muellerdo committed Jul 8, 2022
1 parent 4711894 commit 05169cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aucmedi/xai/methods/occlusion_sensitivity.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def compute_heatmap(self, image, class_index, eps=1e-8):
sensitivity_map[
top_left_y:top_left_y + self.patch_size,
top_left_x:top_left_x + self.patch_size,
] = confidence
] = 1 - confidence
# Return the resulting sensitivity map (automatically a heatmap)
return sensitivity_map

Expand Down

0 comments on commit 05169cf

Please sign in to comment.