## Weight Derivative |

There are several methods to compute the weights of an ANN, however, some of these methods require the partial derivative of the mse (mean squared error) with respect each of the weights in the network. The formulas presented below illustrates how to compute the partial derivatives for the mse for a single training case; to compute the partial derivates for the whole training set the average of the partial derivatives for each case is used. |

## Output Layer Weights |

In order to compute the derivative of the mse for each weight in the output layer, we need to perform two steps:- For each neuron in the output layer compute its δ
- For each weight in the output layer compute the respective partial derivative
z = tanh(1.5y) or z = logsig(y). Observe that t_{i} is the target for neuron i. |

## Hidden Layer Weights |

In order to compute the derivative of the mse for each weight in the hidden layer, we need to perform two steps:- For each neuron in the hidden layer compute its δ (using the δ s of the next layer)
- For each weight in the hidden layer compute the respective partial derivative
z = tanh(1.5y) or z = logsig(y).. |