Get Instant Help From 5000+ Experts For
question

Writing: Get your essay and assignment written from scratch by PhD expert

Rewriting: Paraphrase or rewrite your friend's essay with similar meaning at reduced cost

Editing:Proofread your work by experts and improve grade at Lowest cost

And Improve Your Grades
myassignmenthelp.com
loader
Phone no. Missing!

Enter phone no. to receive critical updates and urgent messages !

Attach file

Error goes here

Files Missing!

Please upload all relevant files for quick & complete assistance.

Guaranteed Higher Grade!
Free Quote
wave
Explaining the Role of Activation Functions in Neural Networks and other Related Topics

Q1: Activation Functions in Neural Networks

Task:

 

Q1(a)Explain the role of activation functions in neural networks.

 

(b)A feedforward neural network has two input nodes, one hidden layer with three hidden neurons, and one output node. The activation functions for all hidden and output neurons are the same linear function in the following form:  g(x)=c*x,  where  “c”  is  a  constant.  Please  explain  why  this  neural network is a linear classifier (you should use mathematical equations with analysis to illustrate this).

 

(c) For the same neural network as in (b), if we replace the activation function for the output neuron with the sigmoid function, will this neural network still be a linear classifier? Please present your analysis and use mathematical equations to illustrate your ideas.


(d) Explain the role of activation functions in neural networks.

 

A feedforward neural network has two input nodes, one hidden layer with three hidden neurons, and one output node. The activation functions for all hidden and output neurons are the same linear function in the following form:  g(x)=c*x,  where  “c”  is  a  constant.  Please  explain  why this  neural network is a linear classifier (you should use mathematical equations with analysis to illustrate this).

 

For the same neural network as in (b), if we replace the activation function for the output neuron with the sigmoid function, will this neural network still be a linear classifier? Please present your analysis and use mathematical equations to illustrate your ideas.


(e) Consider the same neural network in (d). For a training sample with input x1=1, x2=2, calculate the output of the network if the activation function g() in  the  hidden  layer  and  the  output  layer  is  the  identity  relation:  a=g(a). Please ignore the bias in this case for ease of calculation.


Q2 (a) Explain why deep learning is still needed for many complicated problems even  though  the  universal  approximation  theorem  states  that  a  shallow neural network can approximate any continuous functions?

 

(b) You are training a multilayer perceptron using backpropagation, and after many  epochs  you  find  that  the  loss  function  is  very  small,  but  it  is oscillating within a very small range. What might be the reason for this and how will you deal with this situation?

 

(c) In   the   context   of   backpropagation,   explain   what   characteristics   an activation  function  should  have  in  order  to  achieve  effective  training  of neural networks.

 

(d) When training a neural network with backpropagation, the learning rate is first set to be a larger value, and then it is gradually decreased during the learning process. Explain the reason and draw a graph to illustrate this (2 marks for explaining the reason and 2 marks for the graph).

 

In a convolution neural network, suppose there are 6 filters of size 3 x 3 and  stride  1  (the  step  size  of  the  filter)  in  the  first  layer.  If  an  input  of dimension  10  x  10  x  3  is  passed  through  this  layer,  what  are  the dimensions of the data which the next layer will receive? Draw a graph to illustrate your ideas (three marks for calculating the dimensions, and three marks for the graph).

 

Note: the input dimension 10 x 10 x 3 means the input images have three channels  (RGB),  and  the  convolution  operation  needs  to  be  adapted  to the three channel situation. 

support
close