Answered step by step
Verified Expert Solution
Link Copied!

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.

1. 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 ( input_shape =((2562563),)),
t f . k e ra s . l a y e r s . Dense (1048, 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 (512, 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 (0.4),
t f . k e ra s . l a y e r s . Dense (256, 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 (128, 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 (64, 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 (0.6),
t f . k e ra s . l a y e r s . Dense (32, 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 (16, 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 (8, 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. [2]
(b) Justify the choice activation function in output layer. Instead of Relu activation function, justify the choice of using Tanh activation function. [1]
(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? [1]
(d) Write the code snippet for adding the optimizer of your choice. Justify the choice of
the optimizer. Assume any other relevant information. [1]
(e) What will the following code snippet do to the network. [1]
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 =7)
h i s t o r y = ne t . f i t ( epoch s =200, ba t c h_ si z e =32, c a l l b a c k s =[ cb ])

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Conceptual Database Design An Entity Relationship Approach

Authors: Carol Batini, Stefano Ceri, Shamkant B. Navathe

1st Edition

ISBN: 0805302441, 978-0805302448

More Books

Students also viewed these Databases questions

Question

Compute earnings per share for a consolidated firm. AppendxiLO1

Answered: 1 week ago

Question

Explain all drawbacks of application procedure.

Answered: 1 week ago