当前位置:网站首页>Judgment of deep learning experiment results
Judgment of deep learning experiment results
2022-06-30 14:35:00 【Fish in the waves】
Catalog
The results of deep learning are inconsistent each time
It is better to use fixed value random seed
Random number seed setting ? There are three random number seeds ,random,numpy And deep learning library gpu seeds , But I have set up all three , stay gpu The result will be different ,cpu It's the same every time , I am using dynet.
You can directly take the best value for reporting , More rigorous words do 10 Average the times .
Summary of deep learning experiment
The result of the experiment is not good
First, fit a sample or a subset , If the training loss decreases reasonably , Then consider the generalization .
- Make sure the code is correct ( footstone )
- Look at the data , Quantity problem , The distribution of data ( Take a look at both the training set and the test set ), Whether the data is balanced ;
- See if the objective function is compatible with the business objective ( The wrong direction , The effect is not good );
- Visualize the training process and the intermediate results of the prediction ( Locate the problem );
- The last is the parameter adjustment
Adjustable parameter :
- Loss function loss No drop : Whether the data is read correctly 、 Whether the network depth is appropriate 、 Whether there is a problem in the selection of loss function, etc ;
- The accuracy of training set is high train acc、 The accuracy of the test set is low val acc: Whether the network has been fitted 、 If over fitting is required dropout Or other regularization strategies 、 Is there a problem with the selection of test set and training set 、 Whether the early stop strategy can be adopted ;
- The loss function converges too slowly or does not decrease after reaching a certain value : Expand the learning rate 、 Adopt learning rate attenuation strategy 、SGD、Adam、RMSProp Try it later ;
Of course , There's a lot more , I will not introduce . All in all , I think the result of the experiment is not good , If time permits , You shouldn't give up , In this way, we can “ By adjusting parameters ” Better understand the difficulties of the problem . Although tuning is only part of deep learning , But this part is the basis of metaphysics .
Over fitting
train loss When it comes down ,val acc If it also drops , Generally, it is over fitting . Over fitting usually occurs when the number of samples in the training set is small and the model is complex . It's usually just the beginning of the training set loss falling 、 Verification set accuracy increases , Train to a certain extent , Training set loss To descend slowly or no longer , The accuracy of the validation set decreases . You can add dropout、 Regular items or extended data sets .
loss The solution of not falling
Reference link 1
Reference link 2
Reference link 3
loss There are generally three types of non decline , namely : On the training set loss No drop , On validation set loss No drop , And test set loss No drop .
边栏推荐
- Comprehensively analyze the basic features and summary of free and paid SSH tools
- Wuenda 2022 machine learning special course evaluation is coming!
- Computer screenshot how to cut the mouse in
- [scientific research data processing] [basic] category variable frequency analysis chart, numerical variable distribution chart and normality test (including lognormal)
- jsPlumb. Deleteeveryconnection is not a function & jsplumb clear canvas jsplumb delete all nodes and all connections
- Deep understanding Net (2) kernel mode 2 Kernel mode construct semaphone
- Realize a simple LAN communication (similar to feiqiu)
- Alipay certificate mode payment interface
- Numpy creates an empty array data = np empty(shape=[1, 64,64,3])
- MySQL back to table query optimization
猜你喜欢

Deep understanding Net (2) kernel mode 4 Summary of kernel pattern constructs

2021 geek challenge Web

LIS error: this configuration section cannot be used in this path

KnightCTF WEB
![[buuctf] [actf2020 freshman competition]include](/img/42/50439290177fdea5f431e315cac1a1.jpg)
[buuctf] [actf2020 freshman competition]include

Learn about data kinship JSON format design from sqlflow JSON format

2021-07-14 mybaitsplus

QQ was stolen? The reason is

MySQL back to table query optimization

After the MySQL service on the local computer is started and stopped, some services will automatically stop when they are not used by other services or programs
随机推荐
[kubernetes series] k8s set mysql8 case insensitive
Shell programming overview
从控制层返回到js的json数据带“\”转译符,怎么去掉
2021 geek challenge Web
I love network security for new recruitment assessment
"As a service", the inevitable choice of enterprise digital transformation
Thoughts on the security of a PHP file name regular verification
Flat shading with unity
org.json.JSONObject对象转json,json新增元素,根据json的key获取值。以及list对象格式字符串转jsonArray
[geek challenge 2019] PHP problem solving record
Why is the resolution of the image generated by PHP GD library 96? How to change it to 72
LIS error: this configuration section cannot be used in this path
@component使用案例
Querywrapper in mybaits plus
Go sync. WaitGroup
Pytoch viewing model parameter quantity and calculation quantity
Logiciel de récupération de données easyrecovery15 téléchargement
Mysql database foundation: stored procedures and functions
PHP 2D array change key name
Hbuilder most commonly used and full shortcut key set