Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 1 . [ 1 + 1 * 2 + 2 + 1 = 6 marks ] Consider the following DNN for image classification for

Question 1.[1+1*2+2+1=6 marks]
Consider the following DNN for image classification for a dataset that consists of RGB images of size 32x32.
model = models.Sequential()
# Layer 1
model.add(layers.Dense(50, activation='relu',input_shape=**A**))
# Layer 2
model.add(layers.Dense(40, activation='relu'))
# Layer 3
model.add(layers.Dense(30, activation='relu'))
# Layer 4
model.add(layers.Dense(**B**, activation=**C**))
model.compile(optimizer ='sgd', loss =**D**, metrics=['accuracy'])
A. What is the input shape **A** in Layer 1?
B. What will be the value of **B**, activation function **C** and loss **D** if the total number of classes in the dataset is
i.2
ii.10
C. What will be the total number of parameters in Layer 1, Layer 2 and Layer 3? If a dropout layer of value 0.5 is added after Layer 2, what will be the change in the number of parameters?
D. What is the difference between kernel regularizers and activity regularizers?

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

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

6th International Edition

061921323X, 978-0619213237

More Books

Students also viewed these Databases questions

Question

=+a) Show that mixing implies ergodicity.

Answered: 1 week ago