Table of Contents

Neural Networks

Lecture on 15.11.2007

Presentation

Neuron Activation

Perceptrons

Multi-layer NNs

Back-propagation

Threshold Function

Algorithm

  1. Randomize weights
  2. For each example e in training set
    1. “Activate” network: O = net(e); T = ‘correct’ output, error = (T - O)
    2. Calculate delta for each weight from hidden to output
    3. Calculate delta for each weight from input to hidden
  3. Update weights by delta
  4. Goto 2 unless error low enough

So for each example in your training set you make a Forward-Pass and let the net calculate the output. As second step you determine the error for each example. If the errors are under a certain threshold you can stop the training otherwise you continue with step 3. The next step is the Backward-Pass which is the innovative part. You give the error rate backwards through the neural network and so adjust the threshold-functions to a new level. You do this as long as your error rate is to high. But be careful and do not overtrain your net so it will just recognize specific things.

Batch vs. Online Learning

When updating the weights after calculating the delta for the entire training set, we call it batch learning.

If the weights are adjusted after each example this is called online learning.

Advantages of online learning
Disadvantages of online learning

Learning Rate

The Question is how fast do we move towards the error minimum?

Implementations

Neural network implementation in C++ by Kennon Ballou

Links