Skip to content

Added Binary Focal Cross Entropy #10674

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

Merged
merged 9 commits into from
Oct 23, 2023
Prev Previous commit
Next Next commit
Fixed Issue
  • Loading branch information
ank426 committed Oct 18, 2023
commit 8d8c33f9cc16f3fe33b59b4595fe72e973bde2f5
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
focusing on hard examples.

Formula:
Focal Loss = -Σ(alpha * (1 - y_pred)**gamma * y_true * log(y_pred)
Focal Loss = -Σ(alpha * (1 - y_pred)**gamma * y_true * log(y_pred)
+ (1 - alpha) * y_pred**gamma * (1 - y_true) * log(1 - y_pred))

Source:
Expand Down