Back Propagation - A Java SimulationBack in the mists of time (I think it was the summer of 1807), I wrote a Java (not JavaScript) simulation of this. It is a little clumsy - the formatting is poor and the numbers don't fit the slots particularly well, but I thought I'd include it for the applet afficionadoes amongst you. I have included a link for the Java source code - feel free to adapt it in any way you want. I have also included a link for the .class code, if you want to include it on another website. How to use the simulationThe training patterns are present in those rectangles on the left side of the simulation. You can see there are six inputs (the network feeds from left to right) and these correspond to the column of six squares on each training pattern, just as the column of five squares corresponds to the five outputs.
Once you have set the training patterns, you can train the network by clicking on Train. You can always alter training patterns and then retrain at any point. To run the network on a test pattern, you need to set the inputs to the network first. This is done by typing the value of the input to set in the text slot provided, then clicking on the rectangle next to the input to set. The input value will be copied into that rectangle (subject to rounding error, I've found!) Then click on Run |