/forwardforward_python

Python translation of Hinton's "ForwardForward" algorithm

Primary LanguageJupyter NotebookBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

forwardforward_python

Python translation of Hinton's "ForwardForward" algorithm. Gets 99%+ accuracy. All you need is Python (I'm using an iPython kernel) and Numpy.

Requirements:

  • Python (3+ Recommended)
  • Numpy
  • Scipy

pip install numpy

Code is a Python/Numpy implementation of Hinton's "Forward Forward" algorithm. To learn more, check here https://www.cs.toronto.edu/~hinton/FFA13.pdf

Simply add this file to the same folder and run the code https://www.cs.toronto.edu/~hinton/mnistdata.mat