Skip to content

psyrgkan/pypc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An implementation of predictive coding in Python, utilising pytorch for GPU acceleration. We compare the use of the free energy as a loss function vs mean squared error. In addition we also test these predictive coding networks against a normal backpropagation network.

License: MIT

Running

Free Energy Loss Function

python -m scripts.supervised

Mean Squared Error Loss Function

python -m scripts.supervised_mse

Backpropagation

python -m scripts.supervised_bp

Requirements

  • numpy
  • torch
  • torchvision

Authors

Extended by

About

Predictive coding in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%