当前位置:网站首页>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?

边栏推荐
- 【上采样方式-OpenCV插值】
- Cron expression (seven subexpressions)
- POJ 3176-Cow Bowling(DP||记忆化搜索)
- Proof of the thinking of Hanoi Tower problem
- Open3D 欧式聚类
- Solve the grpc connection problem. Dial succeeds with transientfailure
- What does cross-border e-commerce mean? What do you mainly do? What are the business models?
- 无线WIFI学习型8路发射遥控模块
- Mysql统计技巧:ON DUPLICATE KEY UPDATE用法
- redis 集群模式原理
猜你喜欢

【爬虫】charles unknown错误

【主流Nivida显卡深度学习/强化学习/AI算力汇总】

COMSOL--三维图形的建立

Differences between IPv6 and IPv4 three departments including the office of network information technology promote IPv6 scale deployment

redis的持久化机制原理

Evolution of multi-objective sorting model for classified tab commodity flow

XML parsing

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

redis主从模式

redis主从中的Master自动选举之Sentinel哨兵机制
随机推荐
How to protect user privacy without password authentication?
Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in
解决grpc连接问题Dial成功状态为TransientFailure
idea设置打开文件窗口个数
Programmers are involved and maintain industry competitiveness
Pytorch training process was interrupted
Ffmpeg calls avformat_ open_ Error -22 returned during input (invalid argument)
爬虫(9) - Scrapy框架(1) | Scrapy 异步网络爬虫框架
Startup process of uboot:
ACID事务理论
POJ 3176 cow bowling (DP | memory search)
[singleshotmultiboxdetector (SSD, single step multi frame target detection)]
I used Kaitian platform to build an urban epidemic prevention policy inquiry system [Kaitian apaas battle]
【Win11 多用户同时登录远程桌面配置方法】
一次生产环境redis内存占用居高不下问题排查
MySQL 巨坑:update 更新慎用影响行数做判断!!!
以交互方式安装ESXi 6.0
pytorch训练进程被中断了
【无标题】
leetcode:1200. Minimum absolute difference