wPP, wPE, wDS = dtype(-0.5), dtype(2.5), dtype(-5.0) if FlagDendRec == 1: wPV = dtype(-0.3) elif FlagDendRec == 0: wPV = dtype(-0.18) NetPar = Network(NeuPar, wPP=wPP, wPE=wPE, wDS=wDS, wPV=wPV) ### Define simulation parameters & recording options SimPar_test = Simulation() SimPar = Simulation(dt=0.2) SavePar = SaveData() ### Define plasticity parameter LearnPar = Learning(NeuPar, pPV=dtype(0)) # ##################### # ##### Learning ###### # ##################### ### Define input parameters stim_max, SD = dtype(100), dtype(5) Xternal = dtype([400, 2, 2, 2, 0]) if FlagDendRec == 0: Xternal[-1] = 40 num_stim = np.int32(3600) StimPar = Stimulation(NeuPar, NetPar, SD,
folder = 'Fig_1_Supp_3' ### Define neuron and network parameters NeuPar = Neurons(FlagDendRec=np.int32(0)) VE_scale = 0.5 wPP, wPE, wDS = dtype(-0.5), dtype(2.5), dtype(-5.0) NetPar = Network(NeuPar, wPP=wPP, wPE=wPE, wDS=wDS) ### Define simulation parameters & recording options SimPar_test = Simulation() SimPar = Simulation(dt=0.2) SavePar = SaveData() ### Define plasticity parameter LearnPar = Learning(NeuPar) ##################### # Before plasticity # ##################### ### Define input parameters stim_max, SD = dtype(100), dtype(5) Xternal = dtype([400, 2, 2, 2, 40]) num_stim = np.int32(10) StimPar_test = Stimulation(NeuPar, NetPar, SD, None, stim_max,
folder = 'Fig_6' ### Define neuron and network parameters NeuPar = Neurons() wPP, wPE, wDS = dtype(-0.5), dtype(2.5), dtype(-5.0) NetPar = Network(NeuPar, wPP=wPP, wPE=wPE, wDS=wDS) ### Define simulation parameters & recording options SimPar_test = Simulation() SimPar = Simulation(dt=0.2) SavePar = SaveData() ### Define plasticity parameter LearnPar = Learning(NeuPar, flagRule=2) ##################### # Before plasticity # ##################### ### Define input parameters stim_max, SD = dtype(100), dtype(5) Xternal = dtype([400, 2, 2, 2, 0]) num_stim = np.int32(10) StimPar_test = Stimulation(NeuPar, NetPar, SD, None, stim_max, Xternal=Xternal) StimPar_test_long = Stimulation(NeuPar, NetPar, SD, num_stim,