/fep

Models, calculations and examples relating to the free energy principle and active inference

Primary LanguagePythonCreative Commons Zero v1.0 UniversalCC0-1.0

fep

Models, calculations and examples relating to the free energy principle and active inference.

  • bogacz.py: Answers to the exercises in Bogacz (2017). See also Laurent Perrinet's comprehensive and well-explained notebook.
  • calc.py: Calculating specific values e.g. variational free energy, relative entropy (aka Kullback-Leibler divergence).
  • efe.py: Methods relating to expected free energy.
  • examples.py: Methods relating to the free energy principle for inference and action.
  • output.py: Methods for plotting.
  • selection.py: Methods relating to the free energy principle for selection.
  • users_guide.py: Generate the figures that appear in the paper Free Energy: A User's Guide.
  • util.py: Useful methods.