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

gamma #15

Closed
zhly0 opened this issue Jan 5, 2018 · 2 comments
Closed

gamma #15

zhly0 opened this issue Jan 5, 2018 · 2 comments

Comments

@zhly0
Copy link

zhly0 commented Jan 5, 2018

Thanks for your code!
but the code:
loss = -1 * (1-pt)**self.gamma * logpt
in the Angleloss,I really did not get it,because,the default gamma is 0,and the term:
(1-pt)**self.gamma is useless,it is equal to:
loss = -1 * logpt
my question is , is 0 is your default gamma value?

@clcarwin
Copy link
Owner

Yes, zero is the default value. The code is Focal Loss, you can read the focal loss paper to known more.

@zhly0
Copy link
Author

zhly0 commented Jan 10, 2018

Thanks!

@zhly0 zhly0 closed this as completed Jan 10, 2018
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