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

博主会持续更新一些深度学习相关的基础知识以及工作中遇到的问题和感悟,喜欢请关注、点赞、收藏。
边栏推荐
- C language: 11. Pipeline
- PyTorch报CUDA error: no kernel image is available for execution on the device 错误
- c语言:c语言代码风格
- New system installation mysql+sqlyog
- Complete source code of E-commerce mall applet project (wechat applet)
- Programming jump
- 成本高、落地难、见效慢,开源安全怎么办?
- 落实责任到人,广州多措并举筑牢儿童暑期“安全线”
- C language: C language code style
- C language: 9. Return in main function
猜你喜欢

Chinese character search Pinyin wechat applet project source code

Take byte offer in four rounds and answer the interview questions

Kettle consolidated record data reduction

Flink 算子简介

S32k series chips -- Introduction

Debian夺回“debian.community“ 域名,喷子仍不善罢甘休

c语言:clion调试方法

C language: 13. Pointer and memory

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

SQL field type conversion
随机推荐
MySQL learning notes (1) -- variables
Kettle separate and merge records
Basic network faults and troubleshooting
Fzu1669 right angled triangle
27. Basics of golang - mutex lock, read / write lock
台积电5nm即将量产:苹果A14独占7成产能,华为麒麟1020拿下3成
c语言:7、c语言多源码文件使用方法
【深度学习基础知识 - 49】Kmeans
汉字查拼音微信小程序项目源码
4 轮拿下字节 Offer,面试题复盘
To create a MySQL data source resource group, you must choose to create a new exclusive data integration resource group? Or use a common resource group? thank you
Use fastjson JSON (simple and rough version)
时间复杂度和空间复杂度
c语言:14、预处理
Low code implementation exploration (45) business parameters
c语言:13、指针与内存
C language preprocessing instruction
Under the heat wave of Web3.0, the ecological shock of Mensa struck
【深度学习基础知识 - 47】贝叶斯网络与朴素贝叶斯
c语言:8、makeFile编写