Skip to content

MrGeniusProgrammer/NeuralNetwork

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neural Network Approach

// %%{init: {"flowchart": {"defaultRenderer": "elk"}} }%%

%%{init: {"flowchart": {"curve": "linear"}} }%%

flowchart LR

a_0_0 -- w_0_0_0 --> a_1_0
a_0_1 -- w_0_0_1 --> a_1_0

a_0_0 -- w_0_1_0 --> a_1_1
a_0_1 -- w_0_1_1 --> a_1_1

a_1_0 -- w_1_0_0 --> a_2_0
a_1_1 -- w_1_0_1 --> a_2_0

a_1_0 -- w_1_1_0 --> a_2_1
a_1_1 -- w_1_1_1 --> a_2_1

a_2_0 -- w_2_0_0 --> a_3_0
a_2_1 -- w_2_0_1 --> a_3_0

a_2_0 -- w_2_1_0 --> a_3_1
a_2_1 -- w_2_1_1 --> a_3_1

Loading

$$z_{2} = w_{1}a_{1} + b_{2}$$

$$a_{2} = \sigma(z_{2})$$

$$z_{3} = w_{2}a_{2} + b_{3}$$

$$a_{3} = \sigma(z_{3})$$

$$c = C(a_{3}, y)$$

$$\frac{\partial c}{\partial w_{2}} = \frac{\partial c}{\partial a_{3}} \times \frac{\partial a_{3}}{\partial z_{3}} \times \frac{\partial z_{3}}{\partial w_{2}}$$ $$\frac{\partial c}{\partial w_{2}} = 2(a_{3}-y) \times a_{3}(1 - a_{3}) \times a_{2}$$

$$\frac{\partial c}{\partial w_{1}} = \frac{\partial c}{\partial a_{3}} \times \frac{\partial a_{3}}{\partial z_{3}} \times \frac{\partial z_{3}}{\partial a_{2}} \times \frac{\partial a_{2}}{\partial z_{2}} \times \frac{\partial z_{2}}{\partial w_{1}}$$ $$\frac{\partial c}{\partial w_{1}} = 2(a_{3}-y) \times a_{3}(1 - a_{3}) \times w_{2} \times a_{2} (1 - a_{2}) \times a_{1}$$

$$\frac{\partial c}{\partial b_{2}} = \frac{\partial c}{\partial a_{3}} \times \frac{\partial a_{3}}{\partial z_{3}} \times \frac{\partial z_{3}}{\partial b_{2}}$$

$$\frac{\partial z_{3}}{\partial b_{2}} = 1$$

$$\frac{\partial c}{\partial b_{1}} = \frac{\partial c}{\partial a_{3}} \times \frac{\partial a_{3}}{\partial z_{3}} \times \frac{\partial z_{3}}{\partial a_{2}} \times \frac{\partial a_{2}}{\partial z_{2}} \times \frac{\partial z_{2}}{\partial b_{1}}$$

$$\frac{\partial z_{2}}{\partial b_{1}} = 1$$

NeuralNetwork

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published