Question

In: Computer Science

You want to train a feedforward network to recognize a hand written symbol. The network should...

You want to train a feedforward network to recognize a hand written symbol. The network should have 7 hidden layers with 4 neurons each and categorize the image into one of 8 possible categories. The input is an image with resolutions 5 x 2 and a color depth of 2. Each layer - including the input - must have one additional neuron outside what was allocated, as a bias term. In total, how many trainable individual weight parameters (not matrices) are there within the network?

Solutions

Expert Solution

This answer has been edited as per the assumption to flatten the input image.

Given Information

  1. 7 hidden layers with 4 neurons each
  2. The output layer has 8 neurons
  3. The image's dimensions are (5X2X2), It's a fair assumption to flatten the image ou. This will give us a dimension of 20.
  4. Bias has been added to every layer including the input layer.

Solution

The formula for calculating the weighted parameters between the two layers is

Number of neurons in the previous layer + Number of neurons in the current layer + Number of neurons in the current layer (BIAS)

Therefore the entire calculation will be divided into 3 parts,

  1. Weighted parameters for the hidden layer next to the input layer
  2. Weighted parameters for hidden layers connected to the hidden layers
  3. Weighted parameters for the output layers

Part 1:

Note that as the input layer doesn't learn anything there is no calculation for the input layer.

Our image shape is 20. Therefore,

The number of nodes in the input layer is 20,

The number of nodes in the hidden layer is 4.

Substituting the values in the formula mentioned above we get,

20*4+4 = 84 ---(i)

Part 2:

The following calculation is a repetitive calculation. As we have 7 hidden layers. Out of the 7 hidden layers, 6 hidden layers are connected to other hidden layers. As the number of nodes in each hidden layer is constant then all we need to do is to calculate the weights between two hidden layers and multiply it by 6.

The number of nodes in previous hidden layer is 4,

The number of nodes in the current hidden layer is 4,

Substituting the values in the formula mentioned above we get,

4*4+4 = 20

Now we have to repeat this calculation for 6 times, so we simply multiply this number by 6,

Therefore we get, 20*6 = 120 ---(ii)

Part 3:

Now we calculate the weighted parameters between the last hidden layer and the output layer.

The number of nodes in the last hidden layer is 4,

The number of nodes in the output layer (number of categories) is 8,

Substituting the values in the formula mentioned above we get,

4*8+8 = 40 ---(iii)

Now adding (i), (ii), and (iii), we get, 84+120+40 = 244

There are a total of 244 weighted parameters in the above-mentioned feed-forward network.


Related Solutions

1. A software program is able to recognize a hand written letter about 63% of the...
1. A software program is able to recognize a hand written letter about 63% of the time. (a) What is the probability that it takes less than 4 letters before the program recognizes one? (b) What is the expected number of letters shown to the program before it recognizes one? (c) If we show the program 20 letters, what is the probability that it recognizes exactly 12 of them? (d) If we show the program 20 letters, what is the...
Dears, I want unique and full answer to this question (not hand written and not image)....
Dears, I want unique and full answer to this question (not hand written and not image). Q: Review the four workable ethical theories from Chapter 2. Select two of the theories to use in this part. Prepare a 1­­–2 page written response to the following items: Apply one of the theories you selected to a moral dilemma/situation that you or someone you know has faced. What decision does this theory lead you to make regarding the dilemma? Apply the second...
Can you recognize the null in symbol form? What is the implication when we reject the...
Can you recognize the null in symbol form? What is the implication when we reject the null hypothesis in a two-sample case? What is the test statistic when conducting hypothesis tests for two sample means? When conducting hypothesis tests for two sample means, why does u1-u2 in the numerator reduce to zero? When testing the difference between two sample means, what is the level of measurement assumed to be? When testing for the significance of the difference between two sample...
((Note: The answer has to be typed, not hand written nor a picture.)) Thank you.   ...
((Note: The answer has to be typed, not hand written nor a picture.)) Thank you.    GAGE R & R EXERCISE in this example, we do a gage R&R study on two data sets: one in which measurement system variation contributes little to the overall observed variation (GAGEAIAG.MTW), and one in which measurement system variation contributes a lot to the overall observed variation (GAGE2.MTW). For comparison, we analyze the data using both the ANOVA and the Xbar and R method....
Design your home network.  Experiment. Go beyond your home network. Design the network you want. Pick a...
Design your home network.  Experiment. Go beyond your home network. Design the network you want. Pick a networking problem from the internet and design the networking solution. Use lucidchart or vision.
You want to use a packet firewall to protect the Hospital network but you are hesitant...
You want to use a packet firewall to protect the Hospital network but you are hesitant to choose the right location among the following: putting it on the web server at DMZ, putting it along with the IDS server, putting it on the screened subnet with DMZ, or putting it on the domain boundary. Recommend the right answer with justification as to why or why not.  
You are an IT company and want to get a daycare's network design, hardware, software, and...
You are an IT company and want to get a daycare's network design, hardware, software, and security. Project resources allocation. List all types of resources (e.g. human and non-human) you will use them in the enterprise network project. How are you planning to use those resources cost-effectively?
You cna hand write this if you want, Please code this in C Thank you PROBLEM...
You cna hand write this if you want, Please code this in C Thank you PROBLEM DESCRIPTION: Write a program to implement the following requirement: The program will read from standard input two things - a string str1 on the first line of stdin (this string may be an empty string) - a string str2 on the second line of stdin (this string may be an empty string) Note that stdin does not end with '\n'. The program will output...
Program should be written in Java b) The computer program should prompt the user (You are...
Program should be written in Java b) The computer program should prompt the user (You are the user) to enter the answers to the following questions: What is your city of birth? What is your favorite sport? If you could live anywhere in the world, where would you like to live? What is your dream vacation? Take this information and create a short paragraph about the user and output this paragraph. You may use the Scanner class and the System.out...
Please answer these questions clearly in hand written, thank you! 1. Explain 4 things you can...
Please answer these questions clearly in hand written, thank you! 1. Explain 4 things you can do with a JTAG unit while debugging code. 2. The first time an optical shaft encoder was connected to a microprocessor the engineer used an external interrupt but with it configured as a level edge triggered interrupt. Explain why that was not a good idea 3. Discuss the differences between “bare metal” and a Linux operating system and give an example of when each...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT