Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following DNN for image classification of 1 0 classes. The dataset consists of colour images of size 1 6 x 1 6 .

Consider the following DNN for image classification of 10 classes. The dataset consists of colour images of size 16x16.[2+2.5+1.5=6 marks] Input Layer inputs = keras. Input (shape=(# #A##)) Layer 1 x = layers. Dense (30, activation='relu', use_bias=False)(inputs) #Layer 2 x = layers. Dense (60, activation='relu')(x) model = keras. Model (inputs=inputs, outputs=outputs, name="model") model.compile (optimizer = 'adam', loss = #D##, metrics=['accuracy']) A. Write the value or code of ##A## =B## ##C## and ##D# to complete the network. B. If we add a dropout layer of value 0.4 after layer 2, I. What will be the total number of active neurons in layer 2 during a) model training b) model testing? II. What will be the total number of parameters in the network? What is the change in the number of parameters compared to the original network? C. Assume that the image dataset consists of 5000 train images and 1000 test images. We run for 10 epochs with batch size =32, learning rate (LR)=0.01 and SGD optimizer. During model training, I. What will be the size of the batch in the last iteration? II. What is the number of times we perform forward propagation? III. What is the number of times we perform backpropagation? And why?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions