tcav icon indicating copy to clipboard operation
tcav copied to clipboard

result not reproduced by taking gradient wrt logit and flipping sign

Open avani17101 opened this issue 4 years ago • 1 comments

I had the same doubt as https://github.com/tensorflow/tcav/issues/83 https://github.com/tensorflow/tcav/issues/107 https://github.com/tensorflow/tcav/issues/41 I flipped the sign for tcav calc (< changed to >)and took gradient wrt logit(unnormalized output of network, self.pred). Still, I am not getting the same tcav scores as when grad wrt loss and tcav calc sign being <

Why is this happening? @BeenKim ?

avani17101 avatar Dec 19 '21 12:12 avani17101

So the output for importance of zebra in inception network when wrt loss and < sign image whereas when wrt output and > sign I get this image

avani17101 avatar Dec 19 '21 12:12 avani17101