Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Last epsilon of SmoothGrad set to zero #42

Merged
merged 1 commit into from
Jul 5, 2021
Merged

Conversation

chr5tphr
Copy link
Owner

@chr5tphr chr5tphr commented Jul 5, 2021

This sets the epsilon, added to the input in SmoothGrad, for the last
iteration to zero. With this, SmoothGrad with n_iter = 1 is equal to the
gradient (and not the gradient wrt. a shifted input). Additionally, the
model output for the SmoothGrad Attributor is now taken from the last
iteration, therefore saving the additional forward pass.

This sets the epsilon, added to the input in SmoothGrad, for the last
iteration to zero. With this, SmoothGrad with n_iter = 1 is equal to the
gradient (and not the gradient wrt. a shifted input). Additionally, the
model output for the SmoothGrad Attributor is now taken from the last
iteration, therefore saving the additional forward pass.
@chr5tphr chr5tphr merged commit 783e169 into master Jul 5, 2021
@chr5tphr chr5tphr deleted the smoothgrad_epsilon_zero branch July 5, 2021 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant