This repository contains code to produce some of the figures in the following paper:
M Beyeler*, EL Rounds*, KD Carlson, N Dutt, JL Krichmar (2019). Neural correlates of sparse coding and dimensionality reduction. PLOS Computational Biology, doi:10.1371/journal.pcbi.1006908. (*equal contribution)
- Fig. 1B: PCA and NMF applied to the CBCL face dataset.
- Fig. 2: Schematic of the efficient coding hypothesis.
- Fig. 4: Example NMF reconstruction for a specific example of the CBCL face dataset.
Required packages are given in requirements.txt
. For Figs. 1 and 4, you will also need to download the CBCL dataset from here. See NIMFA instructions on where to put it.