The Active Inference Loop project visualizes the concept of active inference using the Manim animation engine. It demonstrates the interactions between an agent and its environment, showcasing various states and actions within the active inference framework.
You can watch the video demonstration

- Python 3.7 or higher
- Manim Community Edition
-
Clone the repository:
git clone https://github.com/skoghoern/active_inference_animations cd <repository-directory>
-
Install the required packages:
pip install manim
To run the animation, use the following command:
manim -pql active_inference_loop.py ActiveInferenceLoop-pqlstands for preview in low quality. You can adjust the quality settings as needed.
active_inference_loop.py: Contains the main code for the active inference loop animation.public/: Directory containing SVG assets for the agent and environment visuals.
Feel free to submit issues or pull requests to improve the project.
This project is licensed under the MIT License.