This repo contains code for the paper "Range, not independence, drives modularity in biological representations.".
The following files can be used to generate each of the figures:
- Figure 1c: Fig1_Basic.ipynb
- Figure 1d: 'Figure 1d.ipynb'
- Figure 2 Left: whatwherefigureplots.ipynb
- Figure 2 Center and Right: autoencoding/
- Figure 3a-d: RNN_linear_modularity_torch.py & RNN_nonlinear_modularity.py.
- Figre 3e: see 'Actionable Neural Representations: Grid Cells from Minimal Constraints', 2023.
- Figure 3f-g: 'Figure 3fg.ipynb'
- Figure 4: Grid_Warp_Train.ipynb and Grid_Warp_Plot.ipynb
- Figure 5: Correlated_Missing_Vars_Train.ipynb and Correlated_Missing_Vars_Plot.ipynb