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

Why cw_loss has a 50 intercept? #72

Open
zzzace2000 opened this issue Apr 2, 2020 · 1 comment
Open

Why cw_loss has a 50 intercept? #72

zzzace2000 opened this issue Apr 2, 2020 · 1 comment
Assignees
Labels
bug Something isn't working work in progress

Comments

@zzzace2000
Copy link
Contributor

In the code, I find the cw_loss has an intercept of 50.

loss = clamp(elementwise_margin(input, target) + 50, 0.)

Is there a particular reason to shift the offset to 50? That basically makes the clamp function useless?

@gwding
Copy link
Collaborator

gwding commented Apr 15, 2020

@zzzace2000 Thanks for the observation!
I agree with you on this. This could be due to my carelessness in distinguishing cw adversarial example and "high-confidence" cw adversarial example, and the offset should at least be an adjustable parameter.
I'll work on fixing this.

@gwding gwding self-assigned this Apr 15, 2020
@gwding gwding added bug Something isn't working work in progress labels Apr 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working work in progress
Projects
None yet
Development

No branches or pull requests

2 participants