A simple implementation of traditional Hopfield Networks (w/ binary states) in C. A two-class binarized subset of MNIST is used as a toy example.
- Run the
generateData.py
script to load and preprocess the example data. - Run
make
ormake debug
to compile the code (Note: Compiling the code in DEBUG mode will print the network state and energy at every training iteration.). - Run the binaries in
./HopfieldNetworks