当前位置:网站首页>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
边栏推荐
猜你喜欢
【深度学习21天学习挑战赛】0、搭建学习环境
Android connects to mysql database using okhttp
彻底搞懂箱形图分析
自动化运维工具Ansible(5)流程控制
with recursive用法
关系型数据库-MySQL:体系结构
TensorFlow2学习笔记:7、优化器
Logistic Regression --- Introduction, API Introduction, Case: Cancer Classification Prediction, Classification Evaluation, and ROC Curve and AUC Metrics
将两个DataTable合并——DataTable.Merge 方法
RecyclerView的用法
随机推荐
PHP课堂笔记(一)
[NSSRound#1 Basic]
TensorFlow2 study notes: 4. The first neural network model, iris classification
将两个DataTable合并——DataTable.Merge 方法
【CV-Learning】语义分割
PostgreSQL模式(Schema)
自动化运维工具Ansible(5)流程控制
flink onTimer定时器实现定时需求
Thread 、Handler和IntentService的用法
Delphi-C side interesting menu operation interface design
线性回归02---波士顿房价预测
【树 图 科 技 头 条】2022年6月28日 星期二 伊能静做客树图社区
组原模拟题
智能合约安全——私有数据访问
自动化运维工具Ansible(6)Jinja2模板
ISCC2021———MISC部分复现(练武)
SQL练习 2022/7/5
线性回归简介01---API使用案例
Postgresql 快照
【CV-Learning】卷积神经网络