当前位置:网站首页>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
边栏推荐
- Handler操作记录 Only one Looper may be created per thread
- Day 8.Developing Simplified Chinese Psychological Linguistic Analysis Dictionary for Microblog
- dpdk 网络协议栈 vpp OvS DDos SDN NFV 虚拟化 高性能专家之路
- 8. Mathematical operation and attribute statistics
- MySQL索引失效与解决方法实践
- Gbase 8C - SQL reference 6 SQL syntax (4)
- 2020年PHP中级面试知识点及答案
- The LAF protocol elephant of defi 2.0 may be one of the few profit-making means in your bear market
- Day 11. Evidence for a mental health crisis in graduate education
- 数字图像处理 第一章 绪论
猜你喜欢

4. Tensor data type and creation tensor

贪心高性能神经网络与AI芯片应用研修

我想不通,MySQL 为什么使用 B+ 树来作索引?

11.感知机的梯度推导

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

If the interviewer asks you about JVM, the extra answer of "escape analysis" technology will give you extra points

GBase 8c产品简介

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

Inno setup package jar + H5 + MySQL + redis into exe

DDD领域驱动设计笔记
随机推荐
Dimitra and ocean protocol interpret the secrets behind agricultural data
5. Indexing and slicing
Inno setup package jar + H5 + MySQL + redis into exe
Day10. Work organization and mental health problems in PhD students
数字图像处理 第二章 数字图像基础
Day14. Using interpretable machine learning method to distinguish intestinal tuberculosis and Crohn's disease
vscode打造golang开发环境以及golang的debug单元测试
GBase 8c产品简介
Gbase 8C - SQL reference 5 full text search
Day 6. Analysis of the energy transmission process of network public opinion in major medical injury events * -- Taking the "Wei Zexi incident" as an example
GBASE 8C——SQL参考6 sql语法(1)
4. Tensor data type and creation tensor
根据文本自动生成UML时序图(draw.io格式)
Performance optimization of common ADB commands
2.简单回归问题
Deploy redis with docker for high availability master-slave replication
Numpy基础学习
Jenkins build image automatic deployment
3. Classification problems - initial experience of handwritten digit recognition
4.张量数据类型和创建Tensor