https://zhuanlan.zhihu.com/p/266023273
cross entropy = - log§; 分类问题经典loss
balanced cross entropy = - α * log§ - (1 - α)* log(1 - p);α / (1 - α) = 负样本数 / 正样本数, 平衡样本不均匀
focal loss = -(1 - p)^γ * log§;平衡分类难易,如果P越大说明分类容易,乘以(1-p)变小
https://zhuanlan.zhihu.com/p/266023273
cross entropy = - log§; 分类问题经典loss
balanced cross entropy = - α * log§ - (1 - α)* log(1 - p);α / (1 - α) = 负样本数 / 正样本数, 平衡样本不均匀
focal loss = -(1 - p)^γ * log§;平衡分类难易,如果P越大说明分类容易,乘以(1-p)变小