Skip to content

ft-major/ActiveInferenceInContinuousSpace

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Active Inference In Continuous Space

A 1Dof 2D arm controlled through active inference.

  • env.py: implements the generative process (the real arm and its dynamics)
  • model.py: implements the generative model (internal model of arm and dynamics)
  • simulation.ipynb: a test with the main loop of iteration. At each timestep, first the model is updated based on the current sensory state. Then the environment (the generative process is updated based on the action returned by the model. Three simulations with different precisions are presented.
  • funcs.py: Utility functions as the forward model g(mu) from the proprioceptive state to the 2D coordinates of the hand, and the dynamical system (a proportional-derivative controller)
  • plotter.py: a collection of objects for plotting
  • mkvideo.py: utility to make gif videos from simulations
  • Gradients.ipynb: A notebook describing the derivation of gradients from the free energy equation

References

Is this my body? (Part I) by Pablo Lanillos

An active inference implementation of phototaxis by Manuel Baltieri and Christopher L. Buckley

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Jupyter Notebook 50.2%
  • Python 49.8%