In my experiment, I train a multilayer CNN for street view housenumbers recognition and check the accuracy of test data. The coding is done inpython using Tensorflow, a powerful library for implementation and trainingdeep neural networks. The central unit of data in TensorFlow is the tensor. Atensor consists of a set of primitive values shaped into an array of any numberof dimensions. A tensor’s rank is its number of dimensions. 20 Along withTensorFlow used some other library function such as Numpy, Mathplotlib, SciPyetc.

Firstly, as I have technical resource limitation I perform my analysisonly using the train and test dataset. And omit extra dataset which is 2.7GB.

Best services for writing your paper according to Trustpilot

Premium Partner
From $18.00 per page
4,8 / 5
4,80
Writers Experience
4,80
Delivery
4,90
Support
4,70
Price
Recommended Service
From $13.90 per page
4,6 / 5
4,70
Writers Experience
4,70
Delivery
4,60
Support
4,60
Price
From $20.00 per page
4,5 / 5
4,80
Writers Experience
4,50
Delivery
4,40
Support
4,10
Price
* All Partners were chosen among 50+ writing services by our Customer Satisfaction Team

Secondly, to make the analysis simpler I find and delete all those data pointswhich have more than 5 digits in the image. For the implementation, I randomlyshuffle valid dataset I have used the pickle file svhn_multi which I created bypreprocessing the data from the original SVHN dataset. Then used the picklefile and train a 7-layer Convoluted Neural Network.

Finally, I cast off thetest data to check for accuracy of the trained model to detect number fromstreet house number image.               At the verybeginning of my experiment, first convolution layer I used 16 feature maps with5x5 filters, and originate 28x28x16 output. A few ReLU layers are also addedafter each layer to add more non-linearity to the decision-making process.

After first sub-sampling the output size decrease in 14x14x10. The secondconvolution has 512 feature maps with 5×5 filters and produces 10x10x32 output.In this moment applied sub-sampling second time and shrink the output size to5x5x32. Finally, the third convolution has 2048 feature maps with same filtersize. It is mentionable that the stride size =1 in my experiment along withthis zero padding also used here.

During my experiment, I used dropouttechnique to reduce the overfitting. Finally, the last layer is SoftMaxregression layer. Weights are initialized randomly using Xavier initializationwhich keeps the weights in the right range. It automatically scales theinitialization based on the number of output and input neurons. Now I train thenetwork and log the accuracy, loss and validation accuracy in steps of 500.