腾讯一面问的,这个知识点平常从未遇到过,当时是以为是朴素贝叶斯的平滑方法,说了Add-1 Add-k interpolation good turning smoothing,但没想到还有标签平滑这个东西。

产生背景

9、标签平滑

工作原理

9、标签平滑
可以看出,损失比之前增加了,他的标签平滑的原理是对真实标签做了改变
源码里的公式为:
new_onehot_labels = onehot_labels * (1 - label_smoothing) + label_smoothing / num_classes

相关文章:

  • 2022-01-16
  • 2021-12-20
  • 2021-08-20
  • 2022-01-01
  • 2021-07-17
  • 2021-04-30
  • 2021-12-30
  • 2021-12-13
猜你喜欢
  • 2021-11-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-30
相关资源
相似解决方案