当前位置:网站首页>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 multidimensional array sorting
- Problems in QT creator (additional unknown and error lines are listed in the debug output window)
- Learn about data kinship JSON format design from sqlflow JSON format
- Four isolation levels of MySQL
- Go language for loop multivariable use
- JS array sorting method summary
- Querywrapper in mybaits plus
- Lfi-rce without controllable documents
- Laravel RBAC laravel permission use
- Pit used by go language array type
猜你喜欢
Fastcgi CGI shallow understanding
@PathVariable
Using docker to manage MySQL services under Windows
Solve the error in my QT_ thread_ global_ End(): 3 threads didn't exit
go channel && select
Flat shading with unity
[redis series] redis learning 16. Redis Dictionary (map) and its core coding structure
ThinkPHP v3.2 comment annotation injection write shell
Problems in QT creator (additional unknown and error lines are listed in the debug output window)
Upgrade centos7 mysql5.5 to mysql5.7 non RPM in the form of tar package
随机推荐
Cost forecast of PMP (BAC, EAC, etc)
[buuctf] [actf2020 freshman competition]exec1
Advanced usage of go language for loop break and continue
Clear the route cache in Vue
Lost connection to the flow server (0 retries remaining): |Out of retries, exiting! Error reporting solution (flow)
Geoffreyhinton: my 50 years of in-depth study and Research on mental skills
V3 01_ Welcome
中信期货开户麻烦吗安全吗,期货开户手续费是多少,能优惠吗
Implementation of forwarding server using IO multiplexing
Introduction to the renewal of substrate source code: the pallet alliance is incorporated into the main line,
DB2 SQL Error: SQLCODE=-206, SQLSTATE=42703
[scientific research data processing] [basic] category variable frequency analysis chart, numerical variable distribution chart and normality test (including lognormal)
數據恢複軟件EasyRecovery15下載
2021 geek challenge Web
2021-07-14 mybaitsplus
Notepad regular delete the line of the keyword
Fastcgi CGI shallow understanding
V3 03_ Getting started
jsPlumb. Deleteeveryconnection is not a function & jsplumb clear canvas jsplumb delete all nodes and all connections
Go sync. WaitGroup