Professional Documents
Culture Documents
6th Semester
Contents
1 Schematic Representation of Problem: 3
2 Pre-Requisites of Problem: 3
∂𝐿
3 Find the Sum of Elements for : ∂𝑤 4
3
∂𝐿
3.4 Sum of all the Elements of ∂𝑤 : . . . . . . . . . . . . . . . . . . . . . . . . . 6
3
∂𝐿
4 Find the Sum of Elements for : ∂𝑤 7
2
∂𝐿
4.1 Computation of ∂𝑤 : . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2
∂𝐿
5.1 Computation of ∂𝑤 : . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1
2 Pre-Requisites of Problem:
From the above diagram, we can say that,
𝑧 (1) = 𝜔1 𝑥
𝑎(1) = 𝜎(𝑧 (1) )
𝑧 (2) = 𝜔2 𝑎(1)
𝑎(2) = 𝜎(𝑧 (2) )
𝑧 (3) = 𝜔3 𝑎(2) = 𝑦ˆ
𝑦ˆ = 𝑎(3) = 𝑧 (3) = Linear activation.
1 1 2
1 1 2
𝑤1 = [3 1 1] 𝜔2 = [ ] 𝜔 = [2 5]
3 1 1 3
1 2 3
1
𝑥 = [1]
1
0.982
= [0.993]
0.997
(1)
Here, 𝑎1 = 0.982
(1)
𝑎2 = 0.993
(1)
𝑎3 = 0.997
0.982
1 1 2
𝑧2 = 𝑤2 𝑎(1) =[ ] + [0.993]
3 1 1 2×3
0.997 3×1
1 × 0.982 + 1 × 0.993 + 2 × 0.997
=[ ]
3 × 0.982 + 1 × 0.993 + 1 × 0.997 2×1
0.982 + 0.993 + 1.994 3.969
=[ ] [ ] .
2.946 + 0.993 + 0.997 2×1 4.936 2×1
3.969 1 1 1
𝑎2 = 𝜎(𝑧 (2) ) =𝜎 [ ] > 𝜎(3.969) ≈ −3.969
≈ ≈ ≈ 0.981
4.936 1+𝑒 1 + 0.018 1.018
0.981
=[ ]
0.993
(2)
Here, 𝑎1 = 0.981
(2)
𝑎2 = 0.993
2 × 0.981
0.981
𝑧3 = 𝑤˙3 𝑎(2) = [2 5] [ ] =[ + ]
0.993 1×2
5 × 0.993
= [6.927] = 𝑌ˆ
∂𝐿
3.3 Computation of ∂𝑤 :
3
𝐿 = (𝑌ˆ − 𝑌)2
∂𝐿 ∂𝐿 ∂𝑌ˆ
= ×
∂𝜔3 ∂𝑦ˆ Δ𝜔 3
∂ ∂
= (𝑌ˆ − 𝑌)2 × 3 (𝑊3 𝑎(2) )
∂𝑌ˆ 𝜔
= 2(𝑌ˆ − 𝑌) × 𝑎(2)
∂𝐿
3.4 Sum of all the Elements of ∂𝑤 :
3
∂𝐿
Sum of all the elements of ∂𝑤 = 2[𝑌ˆ − 𝑌] × 𝑎(2)
3
0.981
= 2[6.927 −10] × [ ]
0.993
0.981
= 2[−3.073] × [ ]
0.993
0.981
= −6.146 × [ ]
0.993
−6.029
=[ ]
−6.102
∂𝐿
∵ = −6.029 + (−6.102)
∂𝜔3
= −12.131
⊤
𝑤3⊤ ⊙ {𝜎(𝑧 (2) ) ⋅ (1 − 𝜎(𝑧 (2) ))} × 2(𝑌ˆ − 𝑌) × 𝑎(1)
−0.227 [
=[ ] 0.982 0.993 0.997]
−0.215
−0.223 −0.225 −0.226 ∂𝐿
=[ ]=
−0.211 −0.213 −0.214 ∂𝜔2
∂𝐿
∴ Sum of all elements for ∂𝜔
2
Let 2(𝑦ˆ − 𝑦) × 𝜔3 × {𝜎(𝑧 (2) ) ⋅ (1 − 𝜎(𝑧 (2) ))} = 𝑝. which is 2 × 1 and is having.
Hadamard product properties
1 1 2
Let 𝑤2 = 𝑞 which is 2 × 3. [ ] Let {𝜎(𝑧 (1) ) ⋅ (1 − 𝜎(𝑧 (1) )} = 𝑟 which is 3 × 1 having
3 1 1
Hadamard Product properties
1
Let 𝑥 = which is 3 × 1 [1] and is having Hadamard Product
1
∴ 𝑟 × 𝑠 = (3 × 1) ⊙ (3 × 1) = (3 × 1) → Hadamard Product
𝑞 × 𝑟𝑠 = (2 × 3) × (3 × 1) = (2 × 1)
𝑝 = (2 × 1) 𝑞 × 𝑟𝑠 = (2 × 1)
∴ 𝑝 ⊙ 𝑞𝑟𝑠 → 𝑝 ⊙ 𝑞 × 𝑟 ⊙ 𝑠 = (2 × 1)
∂𝑙
sum of all the elements of ∂𝜔
1
∂𝐿 −0.227 0.0303
∴ =[ ][ ] ← Applying Hadamard product
∂𝜔1 −0.215 0.0626
−0.0068
=[ ]
−0.0134
∂𝐿
∴ sum of all the elements of ∂𝜔 = (−0.0068) + (−0.0134)
1
= −0.02