Answered step by step
Verified Expert Solution
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 Adding CNN and fully connected layers to recognize handwritten digits on PyTorch 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 hwpartipynb and run it to be familiar with the code. Currently it contains two fully connected
layers with softmax.
Then, experiment with at least alternative network topologies and hyperparameters eg different # of CNNfullyconnected 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 hwpart.ipynb is the input image of hwpart.ipynb has only channel ie 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started