当前位置:网站首页>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 .
边栏推荐
- PHP recursive multi-level classification, infinite classification
- [buuctf] [actf2020 freshman competition]exec1
- Impersonate server and client using message queuing
- How does hbuilder display in columns?
- Problem: wechat developer tool visitor mode cannot use this function
- ctfshow nodejs
- 2021-05-12
- [geek challenge 2019] PHP problem solving record
- Dart extended feature
- 数据恢复软件EasyRecovery15下载
猜你喜欢
![[scientific research data processing] [basic] category variable frequency analysis chart, numerical variable distribution chart and normality test (including lognormal)](/img/70/8bf226964118efb324ca4d339df654.png)
[scientific research data processing] [basic] category variable frequency analysis chart, numerical variable distribution chart and normality test (including lognormal)

MySQL back to table query optimization

How does hbuilder display in columns?
![[buuctf] [geek challenge 2019] secret file](/img/00/23bebd013eb4035555c0057725e3c4.jpg)
[buuctf] [geek challenge 2019] secret file

On simple code crawling Youdao translation_ 0's problem (to be solved)

Not satisfied with markdown native code block style? Try this beautify code screenshot tool~~

2021-07-14 mybaitsplus

"As a service", the inevitable choice of enterprise digital transformation
![[observation] as the intelligent industry accelerates, why should AI computing power take the lead?](/img/61/b446a616e86247507c27390505dc6b.jpg)
[observation] as the intelligent industry accelerates, why should AI computing power take the lead?

Initial attack and defense world Misc
随机推荐
org.json.JSONObject对象转json,json新增元素,根据json的key获取值。以及list对象格式字符串转jsonArray
Why does the folder appear open in another program
Is it troublesome for CITIC futures to open an account? Is it safe? How much is the handling charge for opening an account for futures? Can you offer a discount
Notepad regular delete the line of the keyword
DB2 SQL Error: SQLCODE=-206, SQLSTATE=42703
V3 02——What‘s new in Chrome extensions
PHP multidimensional array sorting
Cost forecast of PMP (BAC, EAC, etc)
Larave8 JWT API expiration custom error return
Google Earth engine (GEE) -- converts string to number and applies it to time search (ee.date.fromymd)
Hbuilder most commonly used and full shortcut key set
Advanced usage of go language for loop break and continue
Numpy creates an empty array data = np empty(shape=[1, 64,64,3])
On simple code crawling Youdao translation_ 0's problem (to be solved)
Querywrapper in mybaits plus
Use of laravel repository mode
Go language mutex lock
Geoffreyhinton: my 50 years of in-depth study and Research on mental skills
MV3 04_ Introducing Manifest V3
@Component use cases