Skip to content

Commit 5edc9f4

Browse files
authored
Remove trailing comma (#1271)
The comma is problematic as reported in pytorch/captum#553
1 parent f2ac253 commit 5edc9f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

recipes_source/recipes/Captum_Recipe.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
attribution_dog = np.transpose(attribution_dog.squeeze().cpu().detach().numpy(), (1,2,0))
137137

138138
vis_types = ["heat_map", "original_image"]
139-
vis_signs = ["all", "all"], # "positive", "negative", or "all" to show both
139+
vis_signs = ["all", "all"] # "positive", "negative", or "all" to show both
140140
# positive attribution indicates that the presence of the area increases the prediction score
141141
# negative attribution indicates distractor areas whose absence increases the score
142142

@@ -186,4 +186,4 @@
186186
#
187187
# Another useful post by Gilbert Tanner:
188188
# https://gilberttanner.com/blog/interpreting-pytorch-models-with-captum
189-
#
189+
#

0 commit comments

Comments
 (0)