Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following DNN for image classification for a dataset that consists of RGB images of size 3 2 x 3 2 . model =

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?(32*32*3,) or (3072,)
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.21, sigmoid, binary_crossentropy
ii.1010, softmax, categorical_crossentropy
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?
Layer 1-3072*50+50=153,650
Layer 2-50*40+40=2040
Layer 3-40*30+30=1230
Total =153650+2040+1230=156,920
No change in the number of parameters if dropout is added.
No. of Pages =4
No. of Questions =5

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_2

Step: 3

blur-text-image_3

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

Introduction To Data Mining

Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar

1st Edition

321321367, 978-0321321367

More Books

Students also viewed these Databases questions

Question

* What is the importance of soil testing in civil engineering?

Answered: 1 week ago

Question

Explain the concept of shear force and bending moment in beams.

Answered: 1 week ago

Question

Describe several models for organizing a human resources department

Answered: 1 week ago