Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
DCO Remediation Commit for Qingpeng Li <qingpeng9802@gmail.com>

I, Qingpeng Li <qingpeng9802@gmail.com>, hereby add my Signed-off-by to this commit: cb5ed04
I, Qingpeng Li <qingpeng9802@gmail.com>, hereby add my Signed-off-by to this commit: 78eebaf

Signed-off-by: Qingpeng Li <qingpeng9802@gmail.com>
  • Loading branch information
qingpeng9802 committed May 23, 2023
1 parent 1aa6ad8 commit a97cf1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monai/losses/focal_loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def sigmoid_focal_loss(
# 1-sigmoid(i) if t==1; sigmoid(i) if t==0 <=>
# 1-p if t==1; p if t==0 <=>
# pfac, that is, the term (1 - pt)
invprobs = F.logsigmoid(-input * (target * 2 - 1)) # reduced chance of overflow
invprobs = F.logsigmoid(-input * (target * 2 - 1)) # reduced chance of overflow
# (pfac.log() * gamma).exp() <=>
# pfac.log().exp() ^ gamma <=>
# pfac ^ gamma
Expand Down

0 comments on commit a97cf1f

Please sign in to comment.