当前位置:网站首页>Confusion matrix learning notes
Confusion matrix learning notes
2022-07-29 02:53:00 【Wsyoneself】
- Conceptual understanding :
- The confusion matrix is ROC The basis of curve drawing , It is also the most basic way to measure the accuracy of the classification model , Most intuitive , The simplest way to calculate
- Simple understanding : The confusion matrix is the error classification of the statistical classification model , The number of observations in the corresponding category is displayed in a table
- Confusion matrix is often used to judge the advantages and disadvantages of classifiers .
- extend : Common methods of judging by type models :
- Confusion matrix
- ROC curve
- AUC area
- For the first level indicators of the second classification :(positive Short for p,negative Short for n)
- TP: The real value is p, The prediction is p The number of
- FN( The second kind of statistical error ): The real value is p, The prediction is n The number of
- FP( The first kind of statistical error ): The real value is n, The prediction is p The number of
- TN: The real value is n, The prediction is n The number of
- Ingenious notes : It's all about judging the predicted value , If the prediction is correct, it will be T, If the prediction is wrong F
- When you get the matrix, you will hope TP and TN Bigger , That is, the value on the sub diagonal is greater
- Secondary indicators of the second classification :( Put forward the reason : The statistics in the confusion matrix are numbers , For a lot of data , It is impossible to measure the merits of the model according to the number )
- Accuracy rate : Calculate the proportion of all correctly judged results in the total predicted value
- accuracy : Forecast as p The correct proportion
- sensitivity : Recall rate , The true value is p Predict the correct proportion in the results
- Specificity : The real value is n The proportion of the predicted pair in the model
- The formula :

adopt 4 Two indicators , You can convert the value to 0-1 The ratio between , Facilitate standardized measurement
- Third level index :F1 score= Accuracy (precision) Reciprocal + Recall rate (recall) Reciprocal , Value range [0,1],1 The output representing the model is the best ,0 The output of representative model is the worst .
- For multi classification , It can be decomposed into multiple binary classifications ( yes or No ), Or it can be directly integrated into a large matrix
边栏推荐
- ASEMI整流桥S25VB100,S25VB100参数,S25VB100应用
- OWT server source code analysis (4) -- video module analysis of mixer out
- Cloud development workers must go to work fishing and paddling wechat applet source code
- Youxuan software appoints Huang Zhijun as the general manager of the company
- Flink kernel source code (VII) Flink SQL submission process
- xxxxx
- C language: hollow square pattern
- QT compilation of IOT management platform 48 characteristic function design
- Flink生产环境经典问题汇总
- MPEG音频编码三十年
猜你喜欢

Small program source code for campus stray cat information recording and sharing / wechat cloud development medium big cat spectrum small program source code

Flink内核源码(七)Flink SQL提交流程

C语言:小乐乐与欧几里得

PHP lucky draw system with background source code

QT屏幕自适应自动布局,拖动窗口自动变大变小(一)

New UI Sifang aggregate payment system source code / new usdt withdrawal / latest update security upgrade to fix XSS vulnerability patch vulnerability

sqlilabs less-32~less-33

php 进程通信系列 (一) 命名管道

第八天笔记

多重继承与派生类成员标识
随机推荐
12. Writing rules - static mode
Self organization is the two-way rush of managers and members
[error reporting] node:internal/modules/cjs/loader:936 [solution]
C language: Little Lele and hexadecimal conversion
C language: judging letters
xxxxx
第八天笔记
架构师进阶,微服务设计与治理的 16 条常用原则
OSPF实验
11. Writing rules - pseudo target
Notes on the sixth day
ASEMI整流桥S25VB100,S25VB100参数,S25VB100应用
golang 协程的实现原理
第六天笔记
Flink内核源码(七)Flink SQL提交流程
Day 10 notes
Implementation principle of golang synergy
Which is a good automatic account distribution system?
Polygon zkEVM——Hermez 2.0简介
Mongodb index (3)