Skip to content

Conversation

wt7k
Copy link

@wt7k wt7k commented Jul 7, 2025

  • 之前 FocalLoss 中计算的 alpha_t 未被使用,导致权重没加上
  • 修改后 loss 计算遵循论文公式:loss = - alpha_t * (1 - pt)^gamma * log(pt)
  • 保留原先 pt 的计算方式,符合概率定义

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

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

Successfully merging this pull request may close these issues.

1 participant