博客
关于我
Softmax函数详解与推导
阅读量:109 次
发布时间:2019-02-26

本文共 933 字,大约阅读时间需要 3 分钟。

Softmax????????

??Softmax??

Softmax????????????????????????0,1???????????????????V???V_i???i????Softmax?????????????

[a_i = \frac{e^{z_i}}{\sum_{j} e^{z_j}}]

???( z_i ) ?????????Softmax???????1????????????????????????????????????

?????????????10?????????????????????Softmax???????????????????????????

??Softmax????

?????????????????????????????????( y_j = 1 )???????

[\text{Loss} = -\ln a_j]

???( a_j ) ?Softmax????j?????????

[\frac{\partial \text{Loss}}{\partial w_{ij}} = a_i (1 - a_j) \cdot o_j]

???( o_j ) ???????( w_{ij} ) ??????????????????????

[\frac{\partial \text{Loss}}{\partial w_{ij}} = a_i a_j \cdot o_j]

?????????????????????????

??????

?????????????????[2, 3, 4]?Softmax?????????

[\begin{align*}a_1 &= \frac{e^2}{e^2 + e^3 + e^4} \a_2 &= \frac{e^3}{e^2 + e^3 + e^4} \a_3 &= \frac{e^4}{e^2 + e^3 + e^4}\end{align*}]

????????????????

[[0.0903, 0.2447 - 1, 0.665] = [0.0903, -0.7553, 0.665]]

?????????????????????????????

转载地址:http://xaxz.baihongyu.com/

你可能感兴趣的文章
Objective-C实现Boyer-Moore字符串搜索算法(附完整源码)
查看>>
Objective-C实现BP误差逆传播算法(附完整源码)
查看>>
Objective-C实现breadth First Search广度优先搜索算法(附完整源码))
查看>>
Objective-C实现BreadthFirstSearch广度优先搜索算法(附完整源码)
查看>>
Objective-C实现bubble sort冒泡排序算法(附完整源码)
查看>>
Objective-C实现Burke 抖动算法(附完整源码)
查看>>
Objective-C实现CaesarsCiphe凯撒密码算法(附完整源码)
查看>>
Objective-C实现cartesianProduct笛卡尔乘积算法(附完整源码)
查看>>
Objective-C实现check strong password检查密码强度算法(附完整源码)
查看>>
Objective-C实现chudnovsky algorithm楚德诺夫斯基算法(附完整源码)
查看>>
Objective-C实现circle sort圆形排序算法(附完整源码)
查看>>
Objective-C实现cocktail shaker sort鸡尾酒排序算法(附完整源码)
查看>>
Objective-C实现cocktailShakerSort鸡尾酒排序算法(附完整源码)
查看>>
Objective-C实现combine Without Repetitions不重复地结合算法(附完整源码)
查看>>
Objective-C实现conjugate gradient共轭梯度算法(附完整源码)
查看>>
Objective-C实现coulombs law库仑定律算法(附完整源码)
查看>>
Objective-C实现currency converter货币换算算法(附完整源码)
查看>>
Objective-C实现data transformations数据转换算法(附完整源码)
查看>>
Objective-C实现DBSCAN聚类算法(附完整源码)
查看>>
Objective-C实现DBSCAN聚类算法(附完整源码)
查看>>