Bayesian inference based normative model that explains in-vivo surround modulation results in Fu et al. 2026: Statistics of natural scenes shape contextual modulation in the visual cortex.
Start the development environment:
docker compose up -d --buildRequirements: PyTorch, PyMC, scikit-image, and the insilico-stimuli package.
See Dockerfile for full dependencies.
The primary notebook is experiments/exc_driven_model/binary_custom_mapping.ipynb.
- Build the normative model
- Generate stimuli (maximum excitatory image, MEI + completing surround, MEI + disruptive surround)
- Perform posterior inference via sampling to obtain neural activity predictions
See experiments/exc_driven_model/plots.ipynb to visualize results and reproduce publication figures.
experiments/- Main experimental code and notebooksprobcs/- Core package modulesdata/- Datasets and stimuli
If you use this code, please cite:
Fu et al. 2026. Statistics of natural scenes shape contextual modulation in the visual cortex.