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

An issue about how to make a perturbation in perturbation.py #214

Open
TAYAyuki opened this issue May 22, 2021 · 0 comments
Open

An issue about how to make a perturbation in perturbation.py #214

TAYAyuki opened this issue May 22, 2021 · 0 comments

Comments

@TAYAyuki
Copy link

Hi,
I use SMART.
In the SMART paper, the gradient is divided by the infinity norm of the gradient first, but in the perturbation.py, the gradient is multiplied by the step_size first, and then the sum of the initial noise and the gradient is divided by the infinity norm of it.
According to the algorithm on the paper, I think that the only gradient is divided by the infinity norm of the gradient, and then the initial noise should be added to it
Could you let me know which is correct?

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

No branches or pull requests

1 participant