当前位置:网站首页>softmax的近似之NCE详解
softmax的近似之NCE详解
2022-07-03 03:13:00 【ChaoFeiLi】
接触对比学习的时候,看到了NCE loss,怕这个博客消失,所以自己特意过来记录。
深度学习中与分类相关的问题都会涉及到softmax的计算。当目标类别较少时,直接用标准的softmax公式进行计算没问题,当目标类别特别多时,则需采用估算近似的方法简化softmax中归一化的计算。
以自然语言中的语言模型为例,从理论到实践详解基于采样的softmax的近似方法NCE。
理论回顾
逻辑回归和softmax回归是两个基础的分类模型,它们都属于线性模型。前者主要处理二分类问题,后者主要处理多分类问题。事实上softmax回归是逻辑回归的一般形式。
Logistic Regression
逻辑回归的模型(函数/假设)为:

Softmax Regression
边栏推荐
- 力扣------网格中的最小路径代价
- 左连接,内连接
- The idea cannot be loaded, and the market solution can be applied (pro test)
- 敏捷认证(Professional Scrum Master)模拟练习题-2
- [error record] the parameter 'can't have a value of' null 'because of its type, but the im
- Super easy to use logzero
- MySQL Real combat 45 [SQL query and Update Execution Process]
- Left connection, inner connection
- C语言初阶-指针详解-庖丁解牛篇
- 分布式事务
猜你喜欢

vfork执行时出现Segmentation fault

Hi3536C V100R001C02SPC040 交叉编译器安装
![MySQL practice 45 [SQL query and update execution process]](/img/cd/3a635f0c3bb4ac3c8241cb77285cc8.png)
MySQL practice 45 [SQL query and update execution process]

MySql實戰45講【SQL查詢和更新執行流程】

为什么线程崩溃不会导致 JVM 崩溃

Vs 2019 installation and configuration opencv

C语言初阶-指针详解-庖丁解牛篇

PAT乙级“1104 天长地久”DFS优化思路

I2C 子系统(二):I3C spec

Installation and use of memory leak tool VLD
随机推荐
Variable declarations following if statements
[C language] MD5 encryption for account password
The file marked by labelme is converted to yolov5 format
[combinatorics] number of solutions of indefinite equations (number of combinations of multiple sets R | number of non negative integer solutions of indefinite equations | number of integer solutions
MySQL practice 45 [global lock and table lock]
900W+ 数据,从 17s 到 300ms,如何操作
I2C 子系統(四):I2C debug
Add automatic model generation function to hade
Agile certification (professional scrum Master) simulation exercises
解决高並發下System.currentTimeMillis卡頓
Force freeing memory in PHP
Idea set method call ignore case
MySql实战45讲【SQL查询和更新执行流程】
Vs 2019 configuration du moteur de génération de tensorrt
Yolov5 project based on QT
BigVision代码
el-tree搜索方法使用
@Accessors annotation function specifies that the prefix follows the hump naming
解决高并发下System.currentTimeMillis卡顿
后管中编辑与预览获取表单的值写法