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

For positive label gamma is being multiplied instead of exponent #2

Open
jonesmabea opened this issue Jul 25, 2018 · 0 comments
Open

Comments

@jonesmabea
Copy link

In the sigmoid focal loss you have
L=-labels*(1-alpha)*((1-y_pred)*gamma)*tf.log(y_pred)-\ (1-labels)*alpha*(y_pred**gamma)*tf.log(1-y_pred)
instead of
L=-labels*(1-alpha)*((1-y_pred)**gamma)*tf.log(y_pred)-\ (1-labels)*alpha*(y_pred**gamma)*tf.log(1-y_pred)

@jonesmabea jonesmabea changed the title For positive label gamma is being multiplied instead of power For positive label gamma is being multiplied instead of exponent Jul 25, 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

1 participant