Formula

Our model looks as follows:

../_images/hiddenlayer.png

Math for NN network

For one example,

../_images/formula.png

We can compute the J i.e. Cost as follows

../_images/cost.png