smooth_labels(平滑标签)

s m o o t h − l a b e l s ( 平 滑 标 签 ) smooth-labels(平滑标签) smoothlabels

数据标注时存在错标、漏标、误标,可以使用平滑标签
如果你认为你的数据标注非常好,也可以不用

def smooth_labels(y_true, label_smoothing,num_classes):
    return y_true * (1.0 - label_smoothing) + label_smoothing / num_classes

猜你喜欢

转载自blog.csdn.net/qq_41375318/article/details/114588918