摘要: def focal_loss(pred, y, alpha=0.25, gamma=2): r"""Compute focal loss for predictions. Multi-labels Focal loss formula: FL = -alpha * (z-p)^gamma * log(p) -(1-a... 阅读全文
posted @ 2019-07-11 10:43 下路派出所 阅读(3341) 评论(0) 推荐(0) 编辑