next up previous
Next: ch4 Up: ch4 Previous: ch4

Backpropagation Algorithm

Initialize all weights to small random numbers.

Until satisfied, Do For each training example, Do Input the training example to the network and compute the network outputs

For each output unit $k$


\begin{displaymath}\delta_{k} \leftarrow o_{k}(1-o_{k})(t_{k}-o_{k}) \end{displaymath}

For each hidden unit $h$


\begin{displaymath}\delta_{h} \leftarrow o_{h}(1-o_{h})\sum_{k \in outputs}w_{h,k}\delta_{k} \end{displaymath}

Update each network weight $w_{i,j}$

\begin{displaymath}w_{i,j} \leftarrow w_{i,j} + \Delta w_{i,j} \end{displaymath}

where


\begin{displaymath}\Delta w_{i,j} = \eta \delta_{j} x_{i,j} \end{displaymath}



Don Patterson 2001-12-13