Note that to fit Gabors you must first run:

python setup.py develop

from this folder

Note also that the basis functions are not exactly the receptive fields, which is why we require the spike-triggered average technique. These will look qualitatively similar but span different spaces 

