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

本文共 949 字,大约阅读时间需要 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/

你可能感兴趣的文章
Nginx 如何代理转发传递真实 ip 地址?
查看>>
Nginx 学习总结(16)—— 动静分离、压缩、缓存、黑白名单、性能等内容温习
查看>>
Nginx 学习总结(17)—— 8 个免费开源 Nginx 管理系统,轻松管理 Nginx 站点配置
查看>>
Nginx 学习(一):Nginx 下载和启动
查看>>
nginx 常用指令配置总结
查看>>
Nginx 常用配置清单
查看>>
nginx 常用配置记录
查看>>
nginx 开启ssl模块 [emerg] the “ssl“ parameter requires ngx_http_ssl_module in /usr/local/nginx
查看>>
Nginx 我们必须知道的那些事
查看>>
Nginx 的 proxy_pass 使用简介
查看>>
Nginx 的配置文件中的 keepalive 介绍
查看>>
Nginx 结合 consul 实现动态负载均衡
查看>>
Nginx 负载均衡与权重配置解析
查看>>
Nginx 负载均衡详解
查看>>
nginx 配置 单页面应用的解决方案
查看>>
nginx 配置https(一)—— 自签名证书
查看>>
nginx 配置~~~本身就是一个静态资源的服务器
查看>>
Nginx 配置清单(一篇够用)
查看>>
Nginx 配置解析:从基础到高级应用指南
查看>>
nginx+php的搭建
查看>>