当前位置:网站首页>Pytorch softmax regression
Pytorch softmax regression
2022-07-05 11:43:00 【My abyss, my abyss】
1、softmax The regression model
softmax The regression model is the same as linear regression, which makes linear superposition of input features and weights ,softmax The output number of regression is equal to the number of categories in the label . For example, in a problem of image classification , The input image is 2x2 Pixel image , Write them down as x1,x2,x3,x4. The real label of the corresponding data set is dog , cat , chicken , Write it down as o1,o2,o3.

softmax Regression is the same as linear regression , It's also a single-layer neural network . The output layer is also a full connection layer .
2、softmax operation
problem :1. The output range of the output layer is uncertain .2. It is difficult to measure the error between it and the real value
solve :softmax operation —— Change the output value to a positive value and a sum of 1 Probability distribution of 
softmax Return to the sample i The vector calculation expression of the classification is :
3、 Cross entropy loss function (cross entropy)—— For classification models

4、 summary
1、softmax Regression is applicable to multi classification problems , It USES softmax Calculate the probability distribution of the output class
2、softmax Regression is a single-layer neural network , The number of outputs is equal to the number of categories of the classification problem
3、 Cross entropy is suitable to measure the difference between two probability distributions
5、 Why? pytorch Not in the frame softmax module?

边栏推荐
- pytorch-softmax回归
- 跨境电商是啥意思?主要是做什么的?业务模式有哪些?
- 【无标题】
- 11.(地图数据篇)OSM数据如何下载使用
- redis主从中的Master自动选举之Sentinel哨兵机制
- 程序员内卷和保持行业竞争力
- 【爬虫】charles unknown错误
- 7 themes and 9 technology masters! Dragon Dragon lecture hall hard core live broadcast preview in July, see you tomorrow
- 13.(地图数据篇)百度坐标(BD09)、国测局坐标(火星坐标,GCJ02)、和WGS84坐标系之间的转换
- View all processes of multiple machines
猜你喜欢

COMSOL -- establishment of 3D graphics

The ninth Operation Committee meeting of dragon lizard community was successfully held
![[mainstream nivida graphics card deep learning / reinforcement learning /ai computing power summary]](/img/1a/dd7453bc5afc6458334ea08aed7998.png)
[mainstream nivida graphics card deep learning / reinforcement learning /ai computing power summary]

1个插件搞定网页中的广告

XML解析

13. (map data) conversion between Baidu coordinate (bd09), national survey of China coordinate (Mars coordinate, gcj02), and WGS84 coordinate system

CDGA|数据治理不得不坚持的六个原则

【TFLite, ONNX, CoreML, TensorRT Export】

XML parsing

【主流Nivida显卡深度学习/强化学习/AI算力汇总】
随机推荐
[crawler] bugs encountered by wasm
pytorch-权重衰退(weight decay)和丢弃法(dropout)
redis的持久化机制原理
程序员内卷和保持行业竞争力
How did the situation that NFT trading market mainly uses eth standard for trading come into being?
PHP中Array的hash函数实现
COMSOL--三维图形的建立
Cdga | six principles that data governance has to adhere to
Pytorch training process was interrupted
Startup process of uboot:
leetcode:1200. Minimum absolute difference
【主流Nivida显卡深度学习/强化学习/AI算力汇总】
The ninth Operation Committee meeting of dragon lizard community was successfully held
无密码身份验证如何保障用户隐私安全?
Acid transaction theory
石油化工企业安全生产智能化管控系统平台建设思考和建议
【TFLite, ONNX, CoreML, TensorRT Export】
ACID事务理论
11.(地图数据篇)OSM数据如何下载使用
Oneforall installation and use