1 Question 1 A Deep Neural Network is shown in Figure 1. The aim of this network is to classify human and dog. 1. Calculate the initial error of the Deep Neural Network by feeding the following input: X₁ = 5, X₂ = 2. The X₁ indicates the length of the tail and X₂ indicates the number of eyes. 2. Update the layer 2 weights (ws,we,w7,ws) of the Deep Neural Network shown in Figure 1 for a single iteration. The learning rate is set to a = 1 and there are no biases in the neurons. 3. Recalculate the error with the updated weights of layer 2 and report its improvement with respect to the initial error (percentage wise). 4. (Bonus Question) Update and report the layer 1 weights (w₁,w₂,w₁,w₁) of the network and estimate the improvement to the error. Input X₁=5 X₂-2 ₂-0 Layer 1 3/₂ /₂0 Layer 2 Predicted Output Real Output 1 0 H BE Figure 1: A Deep Neural Network designed for dog or human detection

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%
1
Question 1
A Deep Neural Network is shown in Figure 1. The aim of this network is to classify human and dog.
1. Calculate the initial error of the Deep Neural Network by feeding the following input: X₁ = 5, X₂ = 2.
The X₁ indicates the length of the tail and X₂ indicates the number of eyes.
2. Update the layer 2 weights (ws,we, w7,ws) of the Deep Neural Network shown in Figure 1 for a single
iteration. The learning rate is set to a = 1 and there are no biases in the neurons.
3. Recalculate the error with the updated weights of layer 2 and report its improvement with respect to
the initial error (percentage wise).
4. (Bonus Question) Update and report the layer 1 weights (w₁,w₂,3,W4) of the network and estimate
the improvement to the error.
Input
X₁=5
W₁-0
w₂ = 0
W₁-0
Layer 1
3₁
₂0
Layer 2
ys
y
Predicted
Output
Real
Output
1
0
BE
Figure 1: A Deep Neural Network designed for dog or human detection
Transcribed Image Text:1 Question 1 A Deep Neural Network is shown in Figure 1. The aim of this network is to classify human and dog. 1. Calculate the initial error of the Deep Neural Network by feeding the following input: X₁ = 5, X₂ = 2. The X₁ indicates the length of the tail and X₂ indicates the number of eyes. 2. Update the layer 2 weights (ws,we, w7,ws) of the Deep Neural Network shown in Figure 1 for a single iteration. The learning rate is set to a = 1 and there are no biases in the neurons. 3. Recalculate the error with the updated weights of layer 2 and report its improvement with respect to the initial error (percentage wise). 4. (Bonus Question) Update and report the layer 1 weights (w₁,w₂,3,W4) of the network and estimate the improvement to the error. Input X₁=5 W₁-0 w₂ = 0 W₁-0 Layer 1 3₁ ₂0 Layer 2 ys y Predicted Output Real Output 1 0 BE Figure 1: A Deep Neural Network designed for dog or human detection
Formula Sheet
The ANN neurons function is described as below:
n
y = o(w₁ X₁ + bi)
where w, b, X and o(2) are the weight, bias, input and activation function respectively. Sigmoid function
(2) = 1 is widely used as an activation function (outputs 0-1).
The error function can also be shown as the following:
3E1
Əw(L)
E
ΙΣ
n
i=1
(3-9₁)²
y(L) = 6 (2(1))
The parital derivative of error, with respect of the weight for layer (L) is calculated as below:
- = y(L-1)ø′ (z(L)) 2 (y(L) — ŷ),
where the derivative of the sigmoid activation function is o' (2)) = ó (z(²)) ((1 – ó (z(¹))).
For each iteration, the weight can then be updated by the following:
JE
ow'
where learning rate a dictates how fast the weights need to be adjusted.
(1)
ww-a
(2)
(3)
(4)
(5)
Transcribed Image Text:Formula Sheet The ANN neurons function is described as below: n y = o(w₁ X₁ + bi) where w, b, X and o(2) are the weight, bias, input and activation function respectively. Sigmoid function (2) = 1 is widely used as an activation function (outputs 0-1). The error function can also be shown as the following: 3E1 Əw(L) E ΙΣ n i=1 (3-9₁)² y(L) = 6 (2(1)) The parital derivative of error, with respect of the weight for layer (L) is calculated as below: - = y(L-1)ø′ (z(L)) 2 (y(L) — ŷ), where the derivative of the sigmoid activation function is o' (2)) = ó (z(²)) ((1 – ó (z(¹))). For each iteration, the weight can then be updated by the following: JE ow' where learning rate a dictates how fast the weights need to be adjusted. (1) ww-a (2) (3) (4) (5)
Expert Solution
steps

Step by step

Solved in 4 steps with 8 images

Blurred answer
Knowledge Booster
Neurons
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education