Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 . A neural network designed using Tensorflow Keras is given below. Students are instructed to type the answers in the textbox of the portal.
A neural network designed using Tensorflow Keras is given below. Students are instructed
to type the answers in the textbox of the portal.
ne t t f k e ra s l a y e r s S e q u e n ti al
ne t add
t f k e ra s l a y e r s Inpu tLaye r inputshape
t f k e ra s l a y e r s Dense a c t i v a t i o n r el u
t f k e ra s l a y e r s Dense a c t i v a t i o n r el u
t f k e ra s l a y e r s Dropout
t f k e ra s l a y e r s Dense a c t i v a t i o n r el u
t f k e ra s l a y e r s Dense a c t i v a t i o n r el u
t f k e ra s l a y e r s Dense a c t i v a t i o n r el u
t f k e ra s l a y e r s Dropout
t f k e ra s l a y e r s Dense a c t i v a t i o n r el u
t f k e ra s l a y e r s Dense a c t i v a t i o n r el u
t f k e ra s l a y e r s Dense a c t i v a t i o n softmax
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 k e ra s c a l l b a c k s Ea rl yS topping monitor l o s s p a ti e n c e
h i s t o r y ne t f i t epoch s ba t c h si z e c a l l b a c k s cb
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