当前位置:网站首页>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?
边栏推荐
- 简单解决redis cluster中从节点读取不了数据(error) MOVED
- Unity xlua monoproxy mono proxy class
- 《看完就懂系列》15个方法教你玩转字符串
- How can edge computing be combined with the Internet of things?
- ZCMU--1390: 队列问题(1)
- 全网最全的新型数据库、多维表格平台盘点 Notion、FlowUs、Airtable、SeaTable、维格表 Vika、飞书多维表格、黑帕云、织信 Informat、语雀
- Open3D 网格(曲面)赋色
- How to get a token from tokenstream based on Lucene 3.5.0
- 【load dataset】
- Go language learning notes - first acquaintance with go language
猜你喜欢
【 YOLOv3中Loss部分计算】
一次生产环境redis内存占用居高不下问题排查
How to protect user privacy without password authentication?
yolov5目标检测神经网络——损失函数计算原理
pytorch-softmax回归
pytorch训练进程被中断了
【爬虫】wasm遇到的bug
【TFLite, ONNX, CoreML, TensorRT Export】
紫光展锐全球首个5G R17 IoT NTN卫星物联网上星实测完成
[singleshotmultiboxdetector (SSD, single step multi frame target detection)]
随机推荐
How to get a token from tokenstream based on Lucene 3.5.0
【上采样方式-OpenCV插值】
MySQL 巨坑:update 更新慎用影响行数做判断!!!
11.(地图数据篇)OSM数据如何下载使用
[yolov5.yaml parsing]
Technology sharing | common interface protocol analysis
Oneforall installation and use
MySQL giant pit: update updates should be judged with caution by affecting the number of rows!!!
[crawler] Charles unknown error
COMSOL -- establishment of geometric model -- establishment of two-dimensional graphics
C#实现WinForm DataGridView控件支持叠加数据绑定
Crawler (9) - scrape framework (1) | scrape asynchronous web crawler framework
汉诺塔问题思路的证明
CDGA|数据治理不得不坚持的六个原则
leetcode:1200. Minimum absolute difference
[yolov3 loss function]
[crawler] bugs encountered by wasm
Cron expression (seven subexpressions)
阻止瀏覽器後退操作
Yolov 5 Target Detection Neural Network - Loss Function Calculation Principle