Ultra-parameter setting in depth learning

Source: Internet
Author: User
the setting of the network Super parameter

Input data pixel size setting: In order to facilitate GPU parallel computing, the image size is set to the second power of 2

The setting of the convolution layer parameters: The volume kernel size is generally used 1∗1 1∗1 1*1, 3∗3 3∗3 3*3 or 5∗5 5∗5 use zero 5*5, you can make full use of edge information, so that the input size to maintain the number of convolution cores are usually set to 2 of the second power, such as 64, 128, 256, 512, 1024, etc.

Pool Layer Parameters Set: The general use of convolution kernel size 2∗2 2∗2 2*2, step 2 2 2 can also be used Stride convolutional layer to replace the pool layer implementation of the sample full join layer (global Average pooling to generation For):
The difference between global Average pooling and Average pooling (local) is the word "global". Global and local are literally used to describe the pooling window area. Local is the average of a Feature map, and then it slides; Global is obviously Feature the entire map (kernel is set to the same size as Feature map) So how many Feature maps How many nodes can be exported. The output can generally be fed directly to the SOFTMAX layer
The choice of training Super parameter setting and skill learning-rate
Fixed learning rate, 0.01,0.001 is a better choice, in addition, we can judge the rate of learning by validation error, as shown in the following figure. The learning rate decay algorithm (step decay,exponential decay) or some adaptive optimization Algorithms (ADAM,ADADELTA) can be used automatically when learning rates are adjusted.

Mini-batch's choice of batch size is too small to slow the training, too assembly speed up the training, but at the same time will lead to excessive memory consumption, and may reduce the accuracy rate. So 32 to 256 is a good initial value choice, especially 64 and 128, the reason for choosing the exponential times of 2 is: The computer memory is generally 2 of the number of times, using 2 coding.

The number of training iterations or epochs Early stopping: If the validation error has not been reduced over a period of time (eg:200 iteration), then the training hook function of the stop training process Tf.train has two pre The Stop Monitor function is defined.
Stopatstephook: monitor function for stopping training after a specific number of steps Nantensorhook: Monitor loss and stop training when encountering NaN loss

Shuffle per Epoch

Gradient cutting: Prevent the gradient explosion three, reference

1. Deep Learning Manual-Chapter 11.4: Select the Super parameter
2, neural network and depth learning manual-The 3rd chapter: How to select the neural network super parameters.
3. The system evaluates CNN's progress on imagenet

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.