当前位置:网站首页>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?
边栏推荐
- Go language learning notes - first acquaintance with go language
- Empêcher le navigateur de reculer
- 【pytorch 修改预训练模型:实测加载预训练模型与模型随机初始化差别不大】
- 谜语1
- pytorch训练进程被中断了
- How to get a token from tokenstream based on Lucene 3.5.0
- go语言学习笔记-初识Go语言
- 解决grpc连接问题Dial成功状态为TransientFailure
- Mysql统计技巧:ON DUPLICATE KEY UPDATE用法
- Mongodb replica set
猜你喜欢
How can China Africa diamond accessory stones be inlaid to be safe and beautiful?
7 themes and 9 technology masters! Dragon Dragon lecture hall hard core live broadcast preview in July, see you tomorrow
如何让你的产品越贵越好卖
中非 钻石副石怎么镶嵌,才能既安全又好看?
The ninth Operation Committee meeting of dragon lizard community was successfully held
redis主从中的Master自动选举之Sentinel哨兵机制
11.(地图数据篇)OSM数据如何下载使用
【Win11 多用户同时登录远程桌面配置方法】
一次生产环境redis内存占用居高不下问题排查
Harbor镜像仓库搭建
随机推荐
pytorch-softmax回归
MySQL statistical skills: on duplicate key update usage
高校毕业求职难?“百日千万”网络招聘活动解决你的难题
无线WIFI学习型8路发射遥控模块
Cron expression (seven subexpressions)
石油化工企业安全生产智能化管控系统平台建设思考和建议
Harbor镜像仓库搭建
Redis集群(主从)脑裂及解决方案
COMSOL--三维图形的建立
《增长黑客》阅读笔记
【SingleShotMultiBoxDetector(SSD,单步多框目标检测)】
redis 集群模式原理
《看完就懂系列》15个方法教你玩转字符串
Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in
以交互方式安装ESXi 6.0
XML解析
[yolov5.yaml parsing]
【TFLite, ONNX, CoreML, TensorRT Export】
yolov5目標檢測神經網絡——損失函數計算原理
AutoCAD -- mask command, how to use CAD to locally enlarge drawings