当前位置:网站首页>【深度学习基础知识 - 37】解决正负样本不均衡 Focal Loss
【深度学习基础知识 - 37】解决正负样本不均衡 Focal Loss
2022-07-27 16:58:00 【雁宇up】
正负样本不均衡是检测任务中常见的问题,在目标检测中,大量样本都是不包含目标的负样本,只有少量是包含目标的正样本,而Focal Loss就是为了解决这个问题而提出的。
Focal Loss的目的
- focal loss的主要目的是降低易分类样本的权重,使得模型更加关注困难样本,防止大量的简单样本主导模型的优化方向。
Focal Loss的计算方式
- 解决样本数量不均衡,在交叉熵中给交叉熵一个权重,也就是相反类的比重。这样一来,对于少量的样本,权重就比较大,对于大量的样本,权重就比较小。
- 解决难易样本不均衡,直观来说,就是对于较难的样本,给一个大权重,对于容易的样本,加一个小权重。具体计算公式如下:

博主会持续更新一些深度学习相关的基础知识以及工作中遇到的问题和感悟,喜欢请关注、点赞、收藏。
边栏推荐
- Responsibility should be assigned to people, and Guangzhou should take multiple measures to build a "safety line" for children in summer
- Kettle consolidated record data reduction
- C language: 10. Input stream, output stream, error stream
- 应用程序池已被禁用
- Daily question (02): inverted string
- Dry goods of technical practice | preliminary exploration of large-scale gbdt training
- 下放三星3J1传感器:代码暗示Pixel 7人脸识别安全性将大增
- 汉字查拼音微信小程序项目源码
- Cumulative output data of kettle Excel
- 英特尔发布Horse Ridge芯片:22nm工艺,能够控制多个量子位
猜你喜欢

C language: 7. How to use C language multi source files

C language: 14. Preprocessing

一种比读写锁更快的锁,还不赶紧认识一下

【深度学习基础知识 - 45】机器学习中常用的距离计算方法

Kettle references external scripts to complete phone number cleaning, de duplication and indentation

带来高价值用户体验的低代码开发平台

golang设置国内镜像,vscode配置golang开发环境,vscode调试golang代码

C language: clion debugging method

Map和Set

SQL field type conversion
随机推荐
三星将推多款RISC-V架构芯片,5G毫米波射频芯片会率先采用
Hardware acceleration of zero knowledge proof
Dry goods of technical practice | preliminary exploration of large-scale gbdt training
Introduction to Flink operator
零知识证明的硬件加速
C语言案例:密码设置及登录> 明解getchar与scanf
估值超156亿元!华勤通讯完成10亿元B轮融资!高通创投、英特尔资本领投
台积电5nm即将量产:苹果A14独占7成产能,华为麒麟1020拿下3成
【日常积累 - 07】cuda多版本切换
Optimization of embedded C language for indefinite cycles
rxbinding
嵌入式C语言结构体
爱立信承认在中国等五国行贿,向美支付10.6亿美元罚款
汉字查拼音微信小程序项目源码
Use fastjson JSON (simple and rough version)
Big guys, Oracle CDC, local operation, always encounter this an exception occurred in
C language: 15. Structure
4 轮拿下字节 Offer,面试题复盘
Flink 算子简介
C language: 11. Pipeline