Question: A neural network designed using Tensorflow Keras is given below. net = t f . ke ras . l a y e r s .
A neural network designed using Tensorflow Keras is given below.
net t f ke ras l a y e r s Se quent i a l
net add
t f ke ras l a y e r s InputLayer inputshape
t f ke ras l a y e r s Dense a c t i v a t i o n r e lu
t f ke ras l a y e r s Dense a c t i v a t i o n r e lu
t f ke ras l a y e r s Dropout
t f ke ras l a y e r s Dense a c t i v a t i o n r e lu
t f ke ras l a y e r s Dense a c t i v a t i o n r e lu
t f ke ras l a y e r s Dense a c t i v a t i o n r e lu
t f ke ras l a y e r s Dropout
t f ke ras l a y e r s Dense a c t i v a t i o n r e lu
t f ke ras l a y e r s Dense a c t i v a t i o n r e lu
t f ke ras l a y e r s Dense a c t i v a t i o nsoftmax
a What is the objective of the neural network? What is the input given to the network?
What is the expected output? How deep and wide is the network.
b Justify the choice activation function in output layer. Instead of Relu activation function,
justify the choice of using Tanh activation function.
c Two dropout statements are added in the code. How many additional parameters are
learned because of this? If drop out is added after the last statement in the given code,
how will it affect the network?
d Write the code snippet for adding the optimizer of your choice. Justify the choice of
the optimizer. Assume any other relevant information.
e What will the following code snippet do to the network.
cb t f ke ras c a l l b a c k s EarlyStopping monitor l o s s pa t i enc e
h i s t o r y net f i t epochs batchsize c a l l b a c k s cb for above program
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
