Related Experiment Video
Updated: Jun 24, 2026

Computational Prediction of Amino Acid Preferences of Potentially Multispecific Peptide-Binding Domains Involved in Protein-Protein Interactions
Published on: January 26, 2024
pyhgf: A neural network library for predictive coding
Nicolas Legrand1, Lilian Weber2, Peter Thestrup Waade1
1Interacting Minds Centre, Aarhus University, Aarhus, Denmark.
This study introduces pyhgf, a Python package for building predictive coding models. It offers a novel framework for dynamic networks, enhancing AI adaptability and biological realism in autonomous agents.
Area of Science:
- Computational Neuroscience
- Artificial Intelligence
- Cognitive Science
Background:
- Bayesian models are increasingly used in neuroscience and AI for understanding cognition.
- Predictive coding theory explains learning and behavior through hierarchical probabilistic inference.
- Implementing these models in standard libraries faces challenges due to software limitations.
Purpose of the Study:
- Introduce pyhgf, a Python package for creating and manipulating dynamic networks for predictive coding.
- Overcome limitations of existing libraries by providing a transparent and modular framework.
- Enable biologically realistic and adaptable autonomous agents.
Main Methods:
- Developed pyhgf using JAX and Rust for efficient computation and differentiation.
- Enclosed network components as transparent, modular variables for flexible message-passing.
- Implemented arbitrary algorithms via belief propagation and dynamic network adaptation.
Main Results:
- pyhgf facilitates the creation of dynamic networks for predictive coding.
- The framework supports self-organization, structure learning, and meta-learning.
- Differentiable functions seamlessly integrate into sampling and optimization workflows.
- Generalized Bayesian filtering and hierarchical Gaussian filter are included examples.
Conclusions:
- pyhgf offers a powerful and flexible tool for developing advanced AI and computational neuroscience models.
- The package promotes biologically plausible and adaptable autonomous agents.
- It enhances the implementation of predictive coding by addressing software development challenges.
Related Concept Videos
Neural Circuits
Neuronal pools are collections of nerve cells with similar functions and interact through chemical and electrical signals. These pools include both interneurons (the central neural circuit nodes that...
Neural Regulation
End Point Prediction: Gran Plot
For potentiometric titration, the Gran plot is created by plotting the...
Classification of Neurotransmitters
Gradient Vectors and Their Applications
Prediction Intervals
However, the point estimate is most likely not the exact value of the population parameter, but close to it. After calculating point estimates, we construct interval estimates, called confidence intervals or prediction intervals. This prediction interval comprises a range of values unlike the point estimate and is a better predictor of the observed sample value, y.
The...