当前位置:网站首页>混淆矩阵学习笔记
混淆矩阵学习笔记
2022-07-29 02:25:00 【Wsyoneself】
- 概念理解:
- 混淆矩阵是ROC曲线绘制的基础,也是衡量分类型模型准确度最基本,最直观,计算最简单的方法
- 简单理解:混淆矩阵就是分别统计分类模型归错类,归对类的观测值个数并放在一个表中展示
- 应用混淆矩阵多用于判断分类器的优劣。
- 延伸:分类型模型评判的常用方法:
- 混淆矩阵
- ROC曲线
- AUC面积
- 对于二分类的一级指标:(positive简记为p,negative简记为n)
- TP:真实值是p,预测是p的数量
- FN(统计学上的第二类错误):真实值是p,预测是n的数量
- FP(统计学上的第一类错误):真实值是n,预测是p的数量
- TN:真实值是n,预测是n的数量
- 巧记:都是对于预测值的评判,如果预测对了则为T,预测错了则为F
- 当得到矩阵之后会希望TP和TN更大,即副对角线上的值更大
- 二分类的二级指标:(提出原因:混淆矩阵中统计的是个数,对于大量的数据,根据个数无法衡量模型的优劣)
- 准确率:计算所有判断正确的结果占总预测值的比重
- 精确度:预测为p中正确的比重
- 灵敏度:召回率,真实值为p的结果中预测正确的比重
- 特异度:真实值是n的结果中模型预测对的比重
- 公式:
通过4个二级指标,可以将数值转为0-1之间的比率,便于标准化的衡量
- 三级指标:F1 score=精确率(precision)的倒数+召回率(recall)的倒数,取值范围[0,1],1代表模型的输出最好,0代表模型的输出结果最差。
- 对于多分类,可以分解为多个二分类(是or不是),或者直接整合为一个大的矩阵
边栏推荐
- 6-21漏洞利用-mysql弱口令破解
- DHCP protocol detailed analysis
- FTP protocol details
- QT qstringlist usage
- FPGA skimming memory (Verilog implementation of ram and FIFO)
- ROCBOSS开源微社区轻论坛类源码
- [error reporting] node:internal/modules/cjs/loader:936 [solution]
- Really time NTP service startup command
- 童年的快乐时光
- DataGrip 如何导出和恢复整个数据库数据,使用单个 SQL 文件
猜你喜欢
FFmpeg+SDL+QT实现简单是视频播放器
以科技传递温度,vivo亮相数字中国建设峰会
Code implementation - the greatest common factor of polynomials (linear algebra)
Understand the evolution of redis architecture in one article
Multiple inheritance and derived class member identification
Library management system
Understanding service governance in distributed development
Multimodal Unsupervised Image-to-Image Translation多通道无监督图像翻译
Redis master-slave mode, sentinel cluster, fragment cluster
golang 协程的实现原理
随机推荐
NVIDIA-VPI(Vision Programming Interface)
New UI Sifang aggregate payment system source code / new usdt withdrawal / latest update security upgrade to fix XSS vulnerability patch vulnerability
Polygon zkEVM——Hermez 2.0简介
CUDA details GPU architecture
[untitled]
nacos名字的由来
PHP幸运抽奖系统带后台源码
第七天笔记
Only when you are far away will you miss
云开发打工人必备上班摸鱼划水微信小程序源码
用于校园流浪猫信息记录和分享的小程序源码/微信云开发中大猫谱小程序源码
Youxuan software appoints Huang Zhijun as the general manager of the company
ECCV 2022 | AirDet:无需微调的小样本目标检测方法
FFmpeg+SDL+QT实现简单是视频播放器
Library management system
2022/07/28 learning notes (day18) common APIs
Comic algorithm_ Xiaohuihui interview
Tesla neural network model hydranet
New conch movie theme template m3.1 fully decrypted version multifunctional apple cmsv10 background adaptive theme open source fully decrypted version
Polygon zkevm - Introduction to HERMEZ 2.0