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

Confuse robust l1 like l2 #7

Closed
huynhhoanghuy opened this issue May 31, 2022 · 1 comment
Closed

Confuse robust l1 like l2 #7

huynhhoanghuy opened this issue May 31, 2022 · 1 comment

Comments

@huynhhoanghuy
Copy link

Sorry if I wrong, did you mistake about l1 norm? Your "robust l1" look like l2 norm without eps.
What effect do you have from eps?

image

def robust_l1(self, pred, target):

@ArminMasoumian
Copy link
Owner

Hi, no we used the l1 norm, we just square root it and to the power of two instead of normal absolute. In the l2 norm, the sum is inside the square root but not in our case. Here is the explanation in the equation. This will increase the accuracy. Also, the eps. is just added to prevent getting zero results from loss.
l1

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

2 participants