Skip to content

Commit f72bee8

Browse files
author
Alexander Ororbia
committed
minor clean-up in model_basics docs
1 parent 09be2fe commit f72bee8

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

docs/tutorials/model_basics/evolving_synapses.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,13 @@ dkey, *subkeys = random.split(dkey, 6)
2929

3030
## create simple system with only one F-N cell
3131
with Context("Circuit") as circuit:
32-
a = RateCell(name="a", n_units=1, tau_m=0.,
33-
act_fx="identity", key=subkeys[0])
34-
b = RateCell(name="b", n_units=1, tau_m=0.,
35-
act_fx="identity", key=subkeys[1])
36-
37-
Wab = HebbianSynapse(name="Wab", shape=(1, 1), eta=1.,
38-
sign_value=-1., weight_init=dist.constant(value=1.),
39-
w_bound=0., key=subkeys[3])
32+
a = RateCell(name="a", n_units=1, tau_m=0., act_fx="identity", key=subkeys[0])
33+
b = RateCell(name="b", n_units=1, tau_m=0., act_fx="identity", key=subkeys[1])
34+
35+
Wab = HebbianSynapse(
36+
name="Wab", shape=(1, 1), eta=1., sign_value=-1., weight_init=dist.constant(value=1.),
37+
w_bound=0., key=subkeys[3]
38+
)
4039

4140
# wire output compartment (rate-coded output zF) of RateCell `a` to input compartment of HebbianSynapse `Wab`
4241
Wab.inputs << a.zF

docs/tutorials/model_basics/model_building.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,11 @@ dkey, *subkeys = random.split(dkey, 4)
2121

2222
## create simple dynamical system: a --> w_ab --> b
2323
with Context("model") as model:
24-
a = RateCell(name="a", n_units=1, tau_m=0.,
25-
act_fx="identity", key=subkeys[0])
26-
b = RateCell(name="b", n_units=1, tau_m=20.,
27-
act_fx="identity", key=subkeys[1])
28-
Wab = HebbianSynapse(name="Wab", shape=(1, 1),
29-
weight_init=dist.constant(value=1.), key=subkeys[2])
24+
a = RateCell(name="a", n_units=1, tau_m=0., act_fx="identity", key=subkeys[0])
25+
b = RateCell(name="b", n_units=1, tau_m=20., act_fx="identity", key=subkeys[1])
26+
Wab = HebbianSynapse(
27+
name="Wab", shape=(1, 1), weight_init=dist.constant(value=1.), key=subkeys[2]
28+
)
3029
```
3130

3231
Next, we will want to wire together the three components we have embedded into

0 commit comments

Comments
 (0)