Code
- All code is released without warranty under the terms of the GNU General Public
License version 2. Please report bugs to michael.spratling@kcl.ac.uk.
v1_reverse_correl.zip (1st release: January 2012; Last release: January 2012)
MATLAB code for modelling reverse correlation experiments using the PC/BC-DIM model of V1.
This code performs the experiments described in: M. W. Spratling (in press) Predictive coding accounts for V1 response properties recorded using reverse correlation. Biological Cybernetics, in press. Please cite this paper if you use this code.
v1_saliency.zip (1st release: July 2011; Last release: July 2011)
MATLAB code for modelling visual saliency using the PC/BC-DIM model.
This code performs the experiments described in: M. W. Spratling (2012) Predictive coding as a model of the V1 saliency map hypothesis. Neural Networks, 26:7-28. Please cite this paper if you use this code.
dim_learn_recip_weights.zip (1st release: June 2011; Last release: June 2011)
MATLAB code for learning in a hierarchical PC/BC-DIM model. The model is applied to learning the bars problem, and to learning using natural images. In the latter case RFs similar to those found in cortical areas V1 and V2 are learnt.
This code performs the experiments described in: M. W. Spratling (2012) Unsupervised learning of generative and discriminative weights encoding elementary image components in a predictive coding model of cortical function. Neural Computation, 24(1): 60-103. Please cite this paper if you use this code.
gain_modulation.zip (1st release: March 2011; Last release: March 2011)
MATLAB code for learning (using the DIM algorithm) RFs in which one input is driving and the other modulatory, giving rise to the types of "gain field" observed in various cortical areas (for example when a retinal RF is modulated by eye position).
This code performs the experiments described in:K. De Meyer and M. W. Spratling (2011) Multiplicative gain modulation arises through unsupervised learning in a predictive coding model of cortical function. Neural Computation, 23(6):1536-67. Please cite this paper if you use this code.
v1_suppression_mechanisms.zip (1st release: March 2011; Last release: March 2011)
MATLAB code for modelling V1 suppression mechanisms using the PC/BC-DIM model.
This code performs the experiments described in: M. W. Spratling (2011) A single functional model accounts for the distinct properties of suppression in cortical area V1. Vision Research, 51:563-76. Please cite this paper if you use this code.
v1_response_properties.zip (1st release: February 2010; Last release: March 2010)
MATLAB code for modelling V1 simple cell RF properties using the PC/BC-DIM model.
This code performs the experiments described in:M. W. Spratling (2010) Predictive coding as a model of response properties in cortical area V1. Journal of Neuroscience, 30(9):3531-43. Please cite this paper if you use this code.
pc_attention.zip (1st release: February 2010; Last release: February 2010)
MATLAB code for modelling visual attention and binding using the PC/BC-DIM model.
This code performs the experiments described in:M. W. Spratling (2008) Predictive coding as a model of biased competition in visual attention. Vision Research, 48(12):1391-408. Please cite this paper if you use this code.
dim_squares.m (1st release: February 2010; Last release: February 2010)
MATLAB code for learning the squares problem using the divisive input modulation (DIM) algorithm.
This code performs one of the tasks described in:M. W. Spratling, K. De Meyer and R. Kompass (2009) Unsupervised learning of overlapping image components using divisive input modulation. Computational Intelligence and Neuroscience, 2009(381457):1-19. Please cite this paper if you use this code.