当前位置:网站首页>Loss function of depth model
Loss function of depth model
2022-06-26 01:37:00 【Green Lantern swordsman】
Recently, I did a small project about location prediction . Because it involves regression , I used it huber Loss function , Now let's summarize the regression loss function , In order to deepen the understanding of
1. MSE and MAE The differences and advantages and disadvantages of
(1) Simply speaking ,MSE Simple calculation , but MAE Better robustness to outliers . If the training data is contaminated by outliers , that MAE Loss is better used . For example, see link 1, It can also be understood intuitively :MSE Equivalent to the average ,MAE Equivalent to taking the median .
(2) However MAE There is a serious problem ( Especially for neural networks ): The updated gradient is always the same , in other words , Even for small loss values , The gradient is also large . This is not conducive to model learning . To solve this defect , We can use varying learning rates , Reduce the learning rate when the loss is close to the minimum .
2. Better loss function
huber Loss function , see link 2
3. Dealing with imbalances Focal loss Loss function
Alleviate the imbalance between positive and negative samples . Be careful :keras There is a problem of category imbalance in , You can train by adding class weights , I don't know and Focal loss Does it matter
4. Cross entropy loss function
Basic knowledge can be seen link 4.1
A previous interview question , Why use the cross entropy loss function ? See link 4.2
5. Loss function in twin networks
边栏推荐
- 生信周刊第33期
- Obtain WiFi password through computer (only connected WiFi)
- Embedded C first learning notes
- MySQL例题一 综合案例(多条件组合查询)
- RT thread project engineering construction and configuration - (Env kconfig)
- Web information collection, naked runners on the Internet
- 20. Hough line transformation
- Xinku online | cnopendata text data of IPO declaration and issuance of A-share listed companies
- What is the process of opening a mobile card account? Is it safe to open an account online?
- Online gadget sharing (updated from time to time, current quantity: 2)
猜你喜欢

New library launched | cnopendata China new house information data

--SQL of urban cultivation manual -- Chapter 1 basic review

Qt Cmake 纯C 代码调用系统控制台输入scanf 及 中文输出乱码

《网络是怎么样连接的》读书笔记 - 集线器、路由器和路由器(三)

Installing MySQL databases in FreeBSD

25. histogram comparison

RT thread project engineering construction and configuration - (Env kconfig)

新库上线 | CnOpenDataA股上市公司IPO申报发行文本数据

LabVIEW开发监控聚变实验脉冲电源

Digital circuit - adder
随机推荐
ETCD数据库源码分析——集群间网络层服务端接口
Is it safe to log in the stock account on the flush? How to open a stock account in the flush
When you run the demo using the gin framework, there is an error "listen TCP: 8080: bind: an attempt was made to access a socket in a way forbidden"
Install tensorflow GPU miscellaneous
Essence and thoughts of 30 lectures on product thinking
Region of Halcon: generation of multiple regions (4)
Shell regular expression
2022年电气试验考试试题模拟考试平台操作
远程增量同步神器rsync
Redis strings command
Online gadget sharing (updated from time to time, current quantity: 2)
Solution to MySQL error code 2003
Oracle database complete uninstallation steps (no screenshot)
Laravel basic course routing and MVC - routing
How to effectively promote products
Tools - API document generation tool
基金开户安全吗?有没有什么风险?
Longitude and latitude multipoint acquisition center point has been solved
Design and process analysis of anti backflow circuit for MOS transistor
JSON instance (I)