博客
关于我
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/

你可能感兴趣的文章
nginx 后端获取真实ip
查看>>
Nginx 学习总结(17)—— 8 个免费开源 Nginx 管理系统,轻松管理 Nginx 站点配置
查看>>
nginx 常用配置记录
查看>>
Nginx 我们必须知道的那些事
查看>>
nginx 配置~~~本身就是一个静态资源的服务器
查看>>
Nio ByteBuffer组件读写指针切换原理与常用方法
查看>>
NLP 基于kashgari和BERT实现中文命名实体识别(NER)
查看>>
No 'Access-Control-Allow-Origin' header is present on the requested resource.
查看>>
Node.js安装与配置指南:轻松启航您的JavaScript服务器之旅
查看>>
NSSet集合 无序的 不能重复的
查看>>
nullnullHuge Pages
查看>>
Numpy如何使用np.umprod重写range函数中i的python
查看>>
oauth2-shiro 添加 redis 实现版本
查看>>
OAuth2.0_JWT令牌-生成令牌和校验令牌_Spring Security OAuth2.0认证授权---springcloud工作笔记148
查看>>
OAuth2.0_JWT令牌介绍_Spring Security OAuth2.0认证授权---springcloud工作笔记147
查看>>
OAuth2.0_介绍_Spring Security OAuth2.0认证授权---springcloud工作笔记137
查看>>
OAuth2.0_授权服务配置_Spring Security OAuth2.0认证授权---springcloud工作笔记140
查看>>
OAuth2.0_授权服务配置_资源服务测试_Spring Security OAuth2.0认证授权---springcloud工作笔记146
查看>>
OAuth2.0_环境搭建_Spring Security OAuth2.0认证授权---springcloud工作笔记139
查看>>
object detection错误之Could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR
查看>>