A Hopfield Neural Network Applet

Controls for the applet

Use the mouse to enter a pattern by clicking squares inside the rectangle "on" or "off". Then, have the network store your pattern by pressing "i", for impose. After storing some patterns, try entering a new pattern, and then press the space bar repeatedly to watch the network "settle" into a previously imposed state. The following keyboard commands are recognized:

Thanks to Matt Hill, at IBM's TJ Watson Research Center, Hawthorne, NY, author of this applet, and to James Bontempo for adding double-buffering to reduce flicker.