Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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