softmax的理解

一、softmax的定义

假设我们有一个数组,V,Vi表示V中的第i个元素,那么这个元素的Softmax值就是

S_i = \frac{e^{V_i}}{\sum_j{e^{V_j}}}

也就是说,是该元素的指数,与所有元素指数和的比值,映射成为(0,1)的值,即可以理解成概率。在最后选取输出结点的时候,我们就可以概率最大的结点,作为我们的预测目标。

二、softmax的应用

1、The softmax function is often used in the final layer of a neural network-based classifier. 

softmax用于多分类过程中,它将多个神经元的输出,映射到(0,1)区间内,可以看成概率来理解,按照概率的大小,从而来进行多分类。

2、In the field of reinforcement learning, a softmax function can be used to convert values into action probabilities.

参考链接:

softmax的维基百科

https://www.jianshu.com/p/ffa51250ba2e

扫描二维码关注公众号,回复: 1476214 查看本文章

猜你喜欢

转载自www.cnblogs.com/BlueBlue-Sky/p/9141245.html
今日推荐