from os.path import join import numpy as np from pycog.figtools import apply_alpha, Figure from pycog.utils import get_here, get_parent from examples.analysis import mante import paper #========================================================================================= # Setup #========================================================================================= here = get_here(__file__) base = get_parent(here) figspath = join(here, 'figs') trialsfile = join(paper.scratchpath, 'mante_areas', 'trials', 'mante_areas_trials.pkl') sortedfile = join(paper.scratchpath, 'mante_areas', 'trials', 'mante_areas_sorted.pkl') betafile = join(base, 'examples', 'work', 'data', 'mante_areas', 'mante_areas_beta.pkl') units = [10, 23, 25, 28] #========================================================================================= # Figure setup #========================================================================================= w = 7.5 h = 6.7
import numpy as np from pycog import RNN from pycog.figtools import gradient, mpl, Figure from pycog.utils import get_here, get_parent from examples.analysis import rdm import paper #========================================================================================= # Paths #========================================================================================= here = get_here(__file__) base = get_parent(here) figspath = join(here, 'figs') modelfile = join(base, 'examples', 'models', 'rdm_dense.py') savefile = join(base, 'examples', 'work', 'data', 'rdm_dense', 'rdm_dense.pkl') #========================================================================================= m = imp.load_source('model', modelfile) rnn = RNN(savefile, {'dt': 0.5}, verbose=False) trial_func = m.generate_trial trial_args = { 'name': 'test', 'catch': False,