博客
关于我
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实现tanh函数功能(附完整源码)
查看>>
Objective-C实现TCP Server 多线程同时连接多个客户端(附完整源码)
查看>>
Objective-C实现TCP拥塞控制(附完整源码)
查看>>
Objective-C实现Tenengrad梯度函数(附完整源码)
查看>>
Objective-C实现ternary search三元搜索算法(附完整源码)
查看>>
Objective-C实现TernarySearch三分查找算法(附完整源码)
查看>>
Objective-C实现The Game of Life 生命游戏算法(附完整源码)
查看>>
Objective-C实现tim sort排序算法(附完整源码)
查看>>
Objective-C实现Timsort算法(附完整源码)
查看>>
Objective-C实现TOPK算法(附完整源码)
查看>>
Objective-C实现topological sort拓扑排序算法(附完整源码)
查看>>
Objective-C实现topologicalSort拓扑排序算法(附完整源码)
查看>>
Objective-C实现trapezoidal rule梯形法则算法(附完整源码)
查看>>
Objective-C实现Trapping Rain Water捕获雨水问题算法(附完整源码)
查看>>
Objective-C实现Travelling Salesman算法(附完整源码)
查看>>
Objective-C实现tree sort树排序算法(附完整源码)
查看>>
Objective-C实现UDP内网穿透(附完整源码)
查看>>
Objective-C实现ugly numbers丑数算法(附完整源码)
查看>>
Objective-C实现wc函数功能(附完整源码)
查看>>
Objective-C实现y = x的平方函数的积分运算(附完整源码)
查看>>