s
m
o
o
t
h
−
l
a
b
e
l
s
(
平
滑
标
签
)
smooth-labels(平滑标签)
smooth−labels(平滑标签)
数据标注时存在错标、漏标、误标,可以使用平滑标签
如果你认为你的数据标注非常好,也可以不用
def smooth_labels(y_true, label_smoothing,num_classes):
return y_true * (1.0 - label_smoothing) + label_smoothing / num_classes