Andrew Ng 's machine learning lecture note (9)

Artificial Neuron Model

   (1)
Andrew Ng 's machine learning lecture note (9)
Andrew Ng 's machine learning lecture note (9)
(2)We should learn some denotion first to understand the above second model.

Andrew Ng 's machine learning lecture note (9)
For the activation units ,we have the below expression :

Andrew Ng 's machine learning lecture note (9)
Finally , we can get the conclusion that the layer J's theta is aAndrew Ng 's machine learning lecture note (9) matrix. 
Andrew Ng 's machine learning lecture note (9)stands for the number of the layer J's units .Andrew Ng 's machine learning lecture note (9)stands for the number of the layer (J+1)'s units

Vetorization rise implementation

In order to make our calcus more simple, we have the following new denotions and formulars.
 Andrew Ng 's machine learning lecture note (9)
Andrew Ng 's machine learning lecture note (9) is a transition variable . Andrew Ng 's machine learning lecture note (9)
Finally ,  Andrew Ng 's machine learning lecture note (9) 

Pay attention : When programing , it's necessary to add the bias unit manually in the process of calculating new alpha.

One vs all algorithm in neuron model

Assume that we have n classes to be classified , our model has m layers then our output layer should look like :
Andrew Ng 's machine learning lecture note (9)

And it can be Andrew Ng 's machine learning lecture note (9)  Andrew Ng 's machine learning lecture note (9) Andrew Ng 's machine learning lecture note (9)Andrew Ng 's machine learning lecture note (9)... ...
Each one represents one situation of output ,like the following example 

Andrew Ng 's machine learning lecture note (9)