Skip to content

Commit

Permalink
Removed STDP for inhibitory neurons
Browse files Browse the repository at this point in the history
  • Loading branch information
tihbe committed May 29, 2019
1 parent b2931f3 commit c82366d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions critical/microcircuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ def createNeuronGroup(N, refractory=5 * ms, tau_vt=50 * ms, vti=0.1, srate=0.0 *
v0 : 1 # membrane potential reset value
vt0 : 1 # adaptive threshold reset value
vti : 1 # adaptive threshold increment
srate : Hz # spontaneous rate
cbf : 1 # last estimation of the target branching factor
c_in_tot : 1 # estimation of total input contributions
Expand Down Expand Up @@ -194,7 +193,6 @@ def createNeuronGroup(N, refractory=5 * ms, tau_vt=50 * ms, vti=0.1, srate=0.0 *
G.v0 = '0.5 + 0.5 * rand()'
G.vt = 1.0
G.vti = vti
G.srate = srate

# Configure initial state for learning rule
G.cbf = 0.0
Expand Down Expand Up @@ -245,7 +243,7 @@ def createCriticalStdpSynapses(G):
# STDP potentiation
'pre_plasticity_stdp': '''
Apre += dApre
w = clip(w + Apost, 0, wmax)
w = clip(w + Apost * int(ntype_pre > 0), 0, wmax)
''',
# Step 5: Reset state variables to accumulate contributions for another interspike interval
'pre_reset': '''
Expand Down

0 comments on commit c82366d

Please sign in to comment.