Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part 2 . Adding CNN and fully connected layers to recognize handwritten digits on PyTorch [ 4 0 points ] In this part, you will

Part 2. Adding CNN and fully connected layers to recognize handwritten digits on PyTorch [40 points]
In this part, you will deal with the MNIST Database. The MNIST Database is a collection of samples of handwritten digits from many people, originally collected by the National Institute of Standards and Technology (NIST), and modified to be more easily analyzed computationally. We will use a tutorial and sample software provided:
Read and run a tutorial to be familiar with how to add CNN layers into PyTorch.
Download hw4-part2.ipynb and run it to be familiar with the code. Currently it contains two fully connected
layers with softmax.
Then, experiment with at least 3 alternative network topologies and hyper-parameters (e.g., different # of CNN/fully-connected layers, # of epochs, # of hidden units, learning rate, batch size, and different activation functions).
Save and summarize the results and report them.
Through the experiment, what is the best configuration? What prediction accuracy on the test set you got?
What did you learn? Refer to the detailed instruction about the CNN layer. The main difference between the tutorial and this given hw4_part.ipynb is the input image of hw4_part.ipynb has only 1 channel (i.e., gray scale). Report results of two fully connected layers without CNN and with CNN.
Your job is to add one CNN layer with one pooling layer before the two fully connected layers with softmax.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 24th International Conference Dexa 2013 Prague Czech Republic August 2013 Proceedings Part 2 Lncs 8056

Authors: Hendrik Decker ,Lenka Lhotska ,Sebastian Link ,Josef Basl ,A Min Tjoa

2013th Edition

3642401724, 978-3642401725

More Books

Students also viewed these Databases questions

Question

Write a mechanism for the following reaction. cat. HSO4 CHOH OCH 3

Answered: 1 week ago