当前位置:网站首页>TensorFlow2 study notes: 6. Overfitting and underfitting, and their mitigation solutions
TensorFlow2 study notes: 6. Overfitting and underfitting, and their mitigation solutions
2022-08-04 06:05:00 【Live up to [email protected]】
1. What is overfitting and underfitting
There are two most common results that may be encountered in both machine learning and deep learning modeling, one is called over-fitting (over-fitting)The other is called underfittingUnder-fitting.
Overfitting
Definition: Overfitting refers to the fact that the model fits the training data too well, which is reflected in the evaluation indicators, that is, the model performs very well on the training set, but in thePoor performance on test set and new data.In layman's terms, overfitting means that the model learns the data so thoroughly that it also learns the features of the noisy data, which will lead to inability to identify well in the later testing.The data, that is, cannot be classified correctly, and the generalization ability of the model is too poor.
Underfitting
Definition: Underfitting refers to the situation that the model does not perform well during training and prediction, which is reflected in the evaluation indicators, which is the performance of the model on the training set and test setNeither bad.Underfitting means that the model does not capture the data features well and cannot fit the data well.
Intuitive performance, as shown below:
Three Fit States in Regression Algorithms
Three Fit States in Classification Algorithms
2. Overfitting solution
- Cleaning data
- Increase the training set
- Use regularization
- Increase the regularization parameter
3. Underfitting solution
- Cleaning data
- Increase the training set
- Use regularization
- Increase the regularization parameter
4. Regularization and how to use it

- L1 regularization: sum the absolute values of all parameters w.There is a high probability that many parameters will become 0, so this method can reduce the complexity by sparse parameters (that is, reducing the number of parameters).
- L2 regularization: sum the squared absolute values of all parameters w.Make the parameter close to 0 but not 0, so this method can reduce the complexity by reducing the parameter value.Reduce overfitting due to noise in the dataset.

版权声明
本文为[Live up to [email protected]]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/216/202208040525327629.html
边栏推荐
- 攻防世界MISC———Dift
- 自动化运维工具Ansible(7)roles
- SQL练习 2022/7/4
- android基础 [超级详细android存储方式解析(SharedPreferences,SQLite数据库存储)]
- Th in thymeleaf: href use notes
- 【深度学习21天学习挑战赛】3、使用自制数据集——卷积神经网络(CNN)天气识别
- Commons Collections1
- (十)树的基础部分(二)
- SQL练习 2022/6/30
- TensorFlow2 study notes: 4. The first neural network model, iris classification
猜你喜欢
随机推荐
sklearn中的pipeline机制
(十四)平衡二叉树
TensorFlow2学习笔记:5、常用激活函数
自动化运维工具Ansible(2)ad-hoc
ReentrantLock(公平锁、非公平锁)可重入锁原理
postgres 递归查询
k9s-终端UI工具
编程Go:内置打印函数 print、println 和 fmt 包中 fmt.Print、fmt.Println 的区别
【深度学习21天学习挑战赛】0、搭建学习环境
flink问题整理
二月、三月校招面试复盘总结(二)
剑指 Offer 20226/30
Redis持久化方式RDB和AOF详解
SQL练习 2022/7/1
攻防世界MISC—MISCall
自动化运维工具Ansible(5)流程控制
win云服务器搭建个人博客失败记录(wordpress,wamp)
Simple and clear, the three paradigms of database design
纳米级完全删除MYSQL5.7以及一些吐槽
Thread 、Handler和IntentService的用法








