Some 31X7 Exercises

Perceptrons
A simple 1-output perceptron program, complete with a data file and a parameter file is available here (and it's a new version which won't need recompiled if you change the number of vectors). There are two programs: perc (i.e.perc.c and perc.h) is used to train the network, and runperc is used to test the network. See the tutorial sheet for full details.
Delta Rule
A simple 1-output Delta rule program is also available in the same directory. There are two programs, one called Delta (Delta.c Delta.h), and the other called rundelta (rundelta.c rundelta.h). They are used in exactly the same way as the perceptron program.

There is a sample data file usable for both programs, namely perc.data.2inputs. The programs are set up as 2-input/1-output networks. (To alter this, change the NINPUTS #define in the program). There are different parameter files, reflecting (i) the different learning rates used with each algorithm and (ii) the different values of minimum error that can be expected.

Back to home page