Code written to understand Karl Friston on Active Inference
Programs based on Life as we Know it
File | Description |
---|---|
ActiveInference.bib | Bibliography |
ActiveInference.tex | Derivations of equations |
selforg.py | Replication of Figure 2, Self Organization and the emergence of macroscopic behaviour, from Friston & Ao, Free Energy, Value, and Attractor |
huygens.py | Test for Huyghens oscillator in selforg.py |
File | Description |
---|---|
example2.py | Example 2 |
exercise2.py | Exercise 2 |
figure2.py | Figure 2 |
message_passing.py | Ported from Message_passing_example.m |
pomdp.py | POMDP example and library for solvers |
pomdp_driver.py | POMDP example |
Programs based on A tutorial on the free-energy framework for modelling perception and learning, by Rafal Bogacz
File | Remarks |
---|---|
feex1.py | Exercise 1--posterior probabilities |
feex2.py | Exercise 2--most likely size |
feex3.py | Exercise 3--neural implementation |
feex5.py | Exercise 5--learn variance |
File | Remarks |
---|---|
euler.py | Euler's method |
rk4.py | Workhorse Runge-Kutta 4th order |
sde.py | Euler-Maruyama method |
File | Remarks |
---|---|
ActiveInference.wpr | Project for Python Code |
template.py | Template for creating additional programs |