当前位置:网站首页>13. Logistic regression
13. Logistic regression
2022-07-27 05:59:00 【Pie star's favorite spongebob】
Catalog
Logical regression logistic regression The concept of has been classification Instead of .
For a question whether it is logistic regression or classification It doesn't matter anymore .
Regression and classification comparison
1. The return question
The goal is : bring pred=y
Method : Reduce pred and y The gap between (pred and y The square difference of )
2. classification
The goal is : Maximize benchmar or accuracy etc.
Method 1: Reduce dist(pθ(y|x),pr(y|x)), stay θ Conditionally y And the conditional probability distribution in the real case , The closer the two are, the better
Method 2: Reduce divergence diviergence(pθ(y|x),pr(y|x))
problem
Question 1 : Why not maximize directly accuracy
Directly maximize accuracy There are two questions 
problem 1: The gradient of 0, When the value weights When the change ,accuracy There is no change .
For classification , There's a threshold , Suppose the threshold is 0.5 when , Even if your prediction starts from 0.4 Rise to 0.49, Closer to the real value , But because the threshold is not exceeded 0.5, So the last accuracy The value is still unchanged . amount to x Changed ,y No change ,y Yes x The gradient is 0.
problem 2: Gradient discontinuity , When the correct number is discontinuous .
When weights When small changes occur , It may also cross the threshold , Lead to accuracy mutation , Make the gradient unstable or explode .
Question two : Why is it called logical regression
Use sigmod
controversy :( Teacher long Liangqu concluded )
MSE->regression
cross entropy->classification
Use two different methods to solve loss, It can be seen as a different problem
边栏推荐
- 数字图像处理第五章——图像复原与重建
- 3.分类问题---手写数字识别初体验
- How to realize master-slave synchronization in mysql5.7
- 8. Mathematical operation and attribute statistics
- GBASE 8C——SQL参考6 sql语法(1)
- Digital image processing Chapter 5 - image restoration and reconstruction
- Day 9. Graduate survey: A love–hurt relationship
- 2020年PHP中级面试知识点及答案
- golang封装mysql涉及到的包以及sqlx和gorm的区别
- 18.卷积神经网络
猜你喜欢

Count the quantity in parallel after MySQL grouping

The LAF protocol elephant of defi 2.0 may be one of the few profit-making means in your bear market

Emoji Emoji for text emotion analysis -improving sentimental analysis accuracy with Emoji embedding

9.高阶操作

【好文种草】根域名的知识 - 阮一峰的网络日志

leetcode系列(一):买卖股票

Web3 traffic aggregation platform starfish OS interprets the "p2e" ecosystem of real business

Day 9. Graduate survey: A love–hurt relationship

3.分类问题---手写数字识别初体验

MySQL索引优化相关原理
随机推荐
Getaverse, a distant bridge to Web3
Day10. Work organization and mental health problems in PhD students
Digital image processing Chapter 2 fundamentals of digital image
2021中大厂php+go面试题(2)
14.实例-多分类问题
3. Classification problems - initial experience of handwritten digit recognition
Day 9. Graduate survey: A love–hurt relationship
GBASE 8C——SQL参考6 sql语法(9)
我想不通,MySQL 为什么使用 B+ 树来作索引?
Andorid detects GPU rendering speed and over rendering
Day 9. Graduate survey: A love–hurt relationship
golang封装mysql涉及到的包以及sqlx和gorm的区别
10.梯度、激活函数和loss
Social media user level psychological stress detection based on deep neural network
一张照片攻破人脸识别系统:能点头摇头张嘴,网友
身为技术管理者应该具备的素质(猜想)
GBase 8c技术特点
Day 7. Towards Preemptive Detection of Depression and Anxiety in Twitter
How to not overwrite the target source data when dBSwitch data migrates data increments
6. Dimension transformation and broadcasting