Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Data Download the MNIST data and construct the following sets: training set: one example only ( you can pick your favourite digit ) test set:
Data
Download the MNIST data and construct the following sets:
training set: one example only you can pick your favourite digit
test set: one example per digit from the MNIST test dataset
Map the images to x
P MLP
P Implement a fully connected neural network h: xgoes tox model that regresses an image into itself. The architecture should have trainable dense layers: the first layers with neurons and ReLU activation, and an output layer with the necessary number of units and activation.
P Train the model using SGD on the appropriate loss function for epochs on the training data. Plot the training loss over epochs.
P Plot the prediction over the training set and test set you should spot a pattern in the predictions, but since there is some randomness associated with using the GPU we recommend repeating the training times to be sure you pick up the right pattern Which function do you conjecture hx has learnt write it in formula
P CNN
P Implement a CNN g:xgoes tox
model that regresses an image into itself. The architecture should have convolutional layers: the first with filters, kernel size X and the same output size as input, and the second a convolutional output layer with the necessary number of filters, kernel and activation.
P Train the model using SGD on the appropriate loss function for epochs on the training data. Plot the training loss over epochs.
P Plot the prediction over the training set and test set you should spot a pattern in the predictions, but since there is some randomness associated with using the GPU we recommend repeating the training times to be sure you pick up the right pattern Which function do you conjecture gx has learnt write it in formula
P Learning the identity map
P Consider a multilayer ReLU network h: Rn goes to Rn such that hx WReLUWReLUWxbbb with Win the list of Ra x n Win the list of Rn x n bin the list of Ra: b bin the list of Rn Find a possible solution for W W W b b b such that h represents the identity function.
What if you want h to represent a constant function that always outputs x
P Consider a CNN g:Rn x n goes to Rn x n model composed by a first hidden convolutional layer with c filters, d x d d oddkerne identity activation and a suitable convolutional output layer. Find a possible architecture for gie specify the complete architecture, c the values in the filters, padding and stride such that g represents the identity function.
If instead of the identity activation, we use a ReLU activation, how should the architecture change?
Note: R means natural numbers and means to the power of
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