当前位置:网站首页>[basic knowledge of deep learning - 37] solve the imbalance between positive and negative samples
[basic knowledge of deep learning - 37] solve the imbalance between positive and negative samples
2022-07-27 19:47:00 【Yanyu up】
Imbalance between positive and negative samples is a common problem in detection tasks , In target detection , A large number of samples are negative samples without targets , Only a few are positive samples containing targets , and Focal Loss It is to solve this problem that .
Focal Loss Purpose
- focal loss The main purpose of is to reduce the weight of easily classified samples , Make the model pay more attention to difficult samples , Prevent a large number of simple samples from dominating the optimization direction of the model .
Focal Loss Calculation method of
- Solve the imbalance in the number of samples , Give cross entropy a weight in cross entropy , That is, the proportion of the opposite class . thus , For a small number of samples , The weight is relatively large , For a large number of samples , The weight is relatively small .
- Solve the imbalance of difficult and easy samples , Intuitive, , For the more difficult samples , Give a big weight , For easy samples , Add a small weight . The specific calculation formula is as follows :

Bloggers will continue to update some basic knowledge related to in-depth learning, as well as problems and insights encountered in work , Please pay attention if you like 、 give the thumbs-up 、 Collection .
边栏推荐
- 【日常积累 - 06】查看cuda和cudnn版本
- Complete source code of E-commerce mall applet project (wechat applet)
- Can set be used to define local variables in OPDS SQL
- 下放三星3J1传感器:代码暗示Pixel 7人脸识别安全性将大增
- The first in the field of mobile phone chip design in the world! Ziguang zhanrui won the international certification of tmmi4
- 一种比读写锁更快的锁,还不赶紧认识一下
- go-zero单体服务使用泛型简化注册Handler路由
- SumMenuDemo(子菜单)
- The valuation exceeds 15.6 billion yuan! Huaqin communication completed the round B financing of 1billion yuan! Qualcomm venture capital, Intel Capital led investment
- C language: 12. GDB tool debugging C program
猜你喜欢

Flink 算子简介

Introduction to Flink operator

A low code development platform that brings high-value user experience

c语言:8、makeFile编写

S32K系列芯片--简介

c语言:10、输入流,输出流,错误流

成本高、落地难、见效慢,开源安全怎么办?

GridView(实现表格显示图标)

5W bonus pool / for colleges and universities, 2022 legal science and technology innovation competition is in progress

Release Samsung 3J1 sensor: the code implies that the safety of pixel 7 face recognition will be greatly increased
随机推荐
ToggleButton(按钮开关)
Optimization of fixed number of cycles in embedded C language
应用程序池已被禁用
AutoCompleteTextView(输入框预匹配)
c语言:clion调试方法
几种无线协议简介
IEC104 规约详细解读(二)交互流程以及协议解析
influxDB系列(三)influxDB配置文件详解
HDU1171_ Big event in HDU [01 backpack]
Debian recaptured the "debian.community" domain name, but it's still not good to stop and rest
嵌入式C语言对次数不定的循环的优化
时间复杂度和空间复杂度
开启和禁用hyper-v
【深度学习基础知识 - 44】逻辑回归实现多分类的方法
Surpass Huawei? Ericsson has won more than 75 5g commercial contracts
ReferenceError: __ dirname is not defined in ES module scope
GridView(实现表格显示图标)
[Huawei cloud stack] [shelf presence] issue 13: have you seen the decoupling architecture of the management area? Help government and enterprise customers solve big problems
[daily accumulation - 06] view CUDA and cudnn versions
Summary of APP launch in vivo application market