1、softmax由来

softmax是根据hardmax得来,hardmax: z=max(x,y),而softmax是z=log(ex+ey)z=log(e^x+e^y)当x>>y时softmax下的 z=x.

为了更加清楚理解:我们固定y=1,比较一下,softmax与hardmax图像:
softmax 理解
softmax 理解
由图像可以知道softmax比hardmax平滑(大概猜出为什么叫softmax了),这给了它特性,可导,可导对神经网络更新参数非常重要。同时softmax让相互比较的数都指数化,这会让提高分数之间的差异(x=10,y=20,yx=10e20e10=485143169x=10,y=20,y-x=10;e^{20}-e^{10}=485143169)让最大值占主导地位。

2、常见softmax公式

常见softmax公式

3、softmax推导

softmax函数的正推原理——softmax前世今生系列(1)

相关文章:

  • 2021-11-11
  • 2021-09-11
  • 2021-07-22
  • 2021-10-25
  • 2021-08-19
  • 2021-04-26
  • 2021-10-02
猜你喜欢
  • 2021-07-04
  • 2021-06-04
  • 2021-11-02
  • 2021-10-16
  • 2021-11-19
相关资源
相似解决方案