Skip to content

Commit 7ded188

Browse files
committed
all tests and sims updated to new units
1 parent 6ae900b commit 7ded188

26 files changed

+62
-59
lines changed

axon/act_test.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

axon/act_test.goal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ func TestActUpdate(t *testing.T) {
1818
geinc := []float32{.01, .02, .03, .04, .05, .1, .2, .3, .2}
1919
correctGe := []float32{0.01, 0.038, 0.090399995, 0.17232, 0.28785598, 0.48028478, 0.8342278, 1.4173822, 2.083906}
2020
ge := make([]float32, len(geinc))
21-
correctInet := []float32{0.5057899, 0.20232204, 0.13488814, 0.11263328, 0.16552368, 0.23408258, 0.3751847, 3.1268563, -1.1801764}
21+
correctInet := []float32{-11801.765, -4720.847, -3147.389, 1126.3328, 1655.2369, 2340.8262, 3751.8467, 31268.564, -11801.765}
2222
inet := make([]float32, len(geinc))
23-
correctVm := []float32{0.1799964, 0.2519971, 0.3, 0.34150493, 0.40320978, 0.4922422, 0.6383711, 1, 0.5800084}
23+
correctVm := []float32{-41.99916, -58.799328, -70, -65.84951, -59.679028, -50.775784, -36.162888, 0, -41.99916}
2424
vm := make([]float32, len(geinc))
2525
correctSpike := []float32{0, 0, 0, 0, 0, 0, 0, 1, 0}
2626
spike := make([]float32, len(geinc))

axon/basic_test.go

Lines changed: 6 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

axon/basic_test.goal

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@ var layerParams = LayerSheets{
4747
"Base": {
4848
{Sel: "Layer", Doc: "layer defaults",
4949
Set: func(ly *LayerParams) {
50-
ly.Acts.Gbar.L = 0.2
50+
ly.Acts.Gbar.L = 20
5151
ly.Learn.RLRate.On.SetBool(false)
5252
ly.Inhib.Layer.FB = 0.5
5353
}},
5454
},
5555
"InhibOff": {
5656
{Sel: "Layer", Doc: "layer defaults",
5757
Set: func(ly *LayerParams) {
58-
ly.Acts.Gbar.L = 0.2
58+
ly.Acts.Gbar.L = 20
5959
ly.Inhib.Layer.On.SetBool(false)
6060
}},
6161
},
@@ -255,6 +255,8 @@ func TestSpikeProp(t *testing.T) {
255255
// fmt.Println("hid recv:", cyc, ge)
256256
hidCyc = cyc
257257
break
258+
// } else {
259+
// fmt.Println("hid not recv:", cyc, ge)
258260
}
259261
}
260262
if hidCyc-inCyc != del+1 {
@@ -436,7 +438,7 @@ func NetActTest(t *testing.T, tol float32, gpu bool) {
436438
qtr0HidGes := []float32{0.35385746, 0, 0, 0}
437439
qtr0HidGis := []float32{0.15478331, 0.15478331, 0.15478331, 0.15478331}
438440
qtr0OutActs := []float32{0.5638285, 0, 0, 0}
439-
qtr0OutGes := []float32{0.38044316, 0, 0, 0}
441+
qtr0OutGes := []float32{0.38044354, 0, 0, 0}
440442
qtr0OutGis := []float32{0.19012947, 0.19012947, 0.19012947, 0.19012947}
441443

442444
qtr3HidActs := []float32{0.56933826, 0, 0, 0}
@@ -558,7 +560,7 @@ func NetActTestShort(t *testing.T, tol float32, gpu bool) {
558560
qtr0HidGes := []float32{0.7399168, 0, 0, 0}
559561
qtr0HidGis := []float32{0.24779803, 0.24779803, 0.24779803, 0.24779803}
560562
qtr0OutActs := []float32{0.55272156, 0, 0, 0}
561-
qtr0OutGes := []float32{0.4891153, 0, 0, 0}
563+
qtr0OutGes := []float32{0.48911548, 0, 0, 0}
562564
qtr0OutGis := []float32{0.21460173, 0.21460173, 0.21460173, 0.21460173}
563565

564566
p1qtr0HidActs := []float32{1.2693764e-08, 0.56647456, 0, 0}

axon/neuron.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -547,9 +547,9 @@ var NeuronVarProps = map[string]string{
547547
"Ge": `cat:"Act" range:"2"`,
548548
"Gi": `cat:"Act" auto-scale:"+"`,
549549
"Gk": `cat:"Act" auto-scale:"+"`,
550-
"Inet": `cat:"Act"`,
551-
"Vm": `cat:"Act" min:"0" max:"1"`,
552-
"VmDend": `cat:"Act" min:"0" max:"1"`,
550+
"Inet": `cat:"Act" auto-scale:"+"`,
551+
"Vm": `cat:"Act" min:"-100" max:"0"`,
552+
"VmDend": `cat:"Act" min:"-100" max:"0"`,
553553
"ISI": `cat:"Act" auto-scale:"+"`,
554554
"ISIAvg": `cat:"Act" auto-scale:"+"`,
555555
"Ext": `cat:"Act"`,

axon/pool_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var poolLayerParams = LayerSheets{
1616
"Base": {
1717
{Sel: "Layer", Doc: "layer defaults",
1818
Set: func(ly *LayerParams) {
19-
ly.Acts.Gbar.L = 0.2
19+
ly.Acts.Gbar.L = 20
2020
ly.Learn.RLRate.On.SetBool(false)
2121
ly.Inhib.Layer.FB = 0.5
2222
}},
@@ -36,7 +36,7 @@ var poolLayerParams = LayerSheets{
3636
"InhibOff": {
3737
{Sel: "Layer", Doc: "layer defaults",
3838
Set: func(ly *LayerParams) {
39-
ly.Acts.Gbar.L = 0.2
39+
ly.Acts.Gbar.L = 20
4040
ly.Inhib.Layer.On.SetBool(false)
4141
}},
4242
},

axon/rubicon-layer.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

axon/rubicon-layer.goal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ func (ly *Layer) BLADefaults() {
175175
lp.Inhib.Layer.Gi = 2 // acq has more input
176176
} else {
177177
lp.Inhib.Layer.Gi = 1.8
178-
lp.Acts.Gbar.L = 0.25 // needed to not be active at start
178+
lp.Acts.Gbar.L = 25 // needed to not be active at start
179179
}
180180
lp.Inhib.Pool.On.SetBool(true)
181181
lp.Inhib.Pool.Gi = 1

chans/chanplots/gabab-plot.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func (pl *GABABPlot) GVRun() { //types:add
9191
nv := int((pl.Vend - pl.Vstart) / pl.Vstep)
9292
for vi := range nv {
9393
v := pl.Vstart + float64(vi)*pl.Vstep
94-
g := float64(pl.GABAB.Gbar) / (1 + math.Exp(pl.Vgain*((v-pl.Erev)+pl.Voff)))
94+
g := float64(pl.GABAB.Gk) / (1 + math.Exp(pl.Vgain*((v-pl.Erev)+pl.Voff)))
9595
i := (v - pl.Erev) * g
9696

9797
dir.Float64("V", nv).SetFloat1D(v, vi)

chans/chanplots/vgcc-plot.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,11 @@ func (pl *VGCCPlot) TimeRun() { //types:add
145145
s.Plot.Title = "VGCC G(t)"
146146
s.RightY = true
147147
})
148-
ons := []string{"V", "M", "H"}
148+
plot.SetFirstStyler(dir.Float64("V"), func(s *plot.Style) {
149+
s.On = true
150+
s.RightY = true
151+
})
152+
ons := []string{"M", "H"}
149153
for _, on := range ons {
150154
plot.SetFirstStyler(dir.Float64(on), func(s *plot.Style) {
151155
s.On = true

sims/bench/bench.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ var LayerParams = axon.LayerSheets{
3333
Set: func(ly *axon.LayerParams) {
3434
ly.Inhib.ActAvg.Nominal = 0.08
3535
ly.Inhib.Layer.Gi = 1.05
36-
ly.Acts.Gbar.L = 0.2
36+
ly.Acts.Gbar.L = 20
3737
}},
3838
{Sel: "#Input", Doc: "",
3939
Set: func(ly *axon.LayerParams) {

sims/benchlvis/bench-lvis.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ var LayerParams = axon.LayerSheets{
2828
Set: func(ly *axon.LayerParams) {
2929
ly.Inhib.ActAvg.Nominal = 0.08
3030
ly.Inhib.Layer.Gi = 1.05
31-
ly.Acts.Gbar.L = 0.2
31+
ly.Acts.Gbar.L = 20
3232
}},
3333
{Sel: "#Input", Doc: "",
3434
Set: func(ly *axon.LayerParams) {

sims/bgdorsal/params.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var LayerParams = axon.LayerSheets{
3939
{Sel: ".DSTNLayer", Doc: "all STN",
4040
Set: func(ly *axon.LayerParams) {
4141
ly.Acts.Init.GeBase = 0.1
42-
ly.Acts.Kir.Gbar = 10 // 10 > 5 > 2 -- key for pause
42+
ly.Acts.Kir.Gk = 10 // 10 > 5 > 2 -- key for pause
4343
ly.Acts.SKCa.Gk = 2 // 2 > 5 >> 1 (for Kir = 10)
4444
ly.Acts.SKCa.CaRDecayTau = 150 // 150 > 180 > 200 > 130 >> 80 def -- key param!
4545
ly.Inhib.Layer.On.SetBool(true) // actually needs this
@@ -56,7 +56,7 @@ var LayerParams = axon.LayerSheets{
5656
ly.Inhib.ActAvg.Nominal = 0.3 // 0.3 def -- key but wrong!
5757
ly.Acts.Decay.OnRew.SetBool(true) // true def -- seems better?
5858
ly.Acts.Dend.ModGain = 1.0 // 1.5 def
59-
ly.Acts.Kir.Gbar = 0 // no real diff here over range 0-10
59+
ly.Acts.Kir.Gk = 0 // no real diff here over range 0-10
6060
ly.Acts.MaintNMDA.Ge = 0.007 // 0.007 default
6161
}},
6262
{Sel: ".PTPredLayer", Doc: "",

sims/bgventral/params.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ var LayerParams = axon.LayerSheets{
4141
Set: func(ly *axon.LayerParams) {
4242
// ly.Inhib.Layer.Gi = 3.2 // 3.2 def
4343
ly.Acts.Dend.ModGain = 1.5 // 1.5 def
44-
ly.Acts.Kir.Gbar = 0 // no real diff here over range 0-10
44+
ly.Acts.Kir.Gk = 0 // no real diff here over range 0-10
4545
ly.Acts.Dend.ModACh.SetBool(true)
4646
}},
4747
{Sel: ".ACC", Doc: "manipulate noise to see about integration over time",

sims/choose/params.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ var LayerParams = axon.LayerSheets{
2828
{Sel: ".VSTNLayer", Doc: "all VSTN",
2929
Set: func(ly *axon.LayerParams) {
3030
ly.Acts.Init.GeBase = 0.1
31-
ly.Acts.Kir.Gbar = 10 // 10 > 5 > 2 -- key for pause
31+
ly.Acts.Kir.Gk = 10 // 10 > 5 > 2 -- key for pause
3232
ly.Acts.SKCa.Gk = 2 // 2 > 5 >> 1 (for Kir = 10)
3333
ly.Acts.SKCa.CaRDecayTau = 80 // 80 > 150
3434
// ly.Inhib.Layer.On.SetBool(true) // really no inhib neurons here. all VGPePr
@@ -90,7 +90,7 @@ var LayerParams = axon.LayerSheets{
9090
ly.Inhib.Pool.Gi = 0.5 // go lower, get more inhib from elsewhere?
9191
ly.Inhib.Pool.FB = 0
9292
ly.Acts.Dend.ModGain = 1 // todo: 2 is default
93-
ly.Acts.Kir.Gbar = 2
93+
ly.Acts.Kir.Gk = 2
9494
ly.Learn.NeuroMod.BurstGain = 1
9595
ly.Learn.NeuroMod.DAModGain = 0 // no bias is better!
9696
ly.Learn.RLRate.SigmoidMin = 0.001 // 0.01 better than .05

sims/deepfsa/params.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,20 @@ var LayerParams = axon.LayerSheets{
2121
ly.Learn.TrgAvgAct.SubMean = 1 // 1 > 0
2222
ly.Learn.TrgAvgAct.SynScaleRate = 0.005 // 0.005 > others
2323
ly.Learn.TrgAvgAct.ErrLRate = 0.02 // 0.02 def
24-
ly.Acts.Gbar.L = 0.2 // std
24+
ly.Acts.Gbar.L = 20 // std
2525
ly.Acts.Decay.Act = 0.0 // 0 == 0.2
2626
ly.Acts.Decay.Glong = 0.0
2727
ly.Acts.Dt.LongAvgTau = 20 // 20 > higher for objrec, lvis
2828
ly.Acts.Dend.GExp = 0.2 // 0.2 > 0.5 > 0.1 > 0
2929
ly.Acts.Dend.GR = 3 // 3 / 0.2 > 6 / 0.5
3030
ly.Acts.Dend.SSGi = 2 // 2 > 3
31-
ly.Acts.Dt.VmDendC = 5 // old: 8 > 5 >> 2.81 -- big diff
32-
ly.Acts.AK.Gbar = 0.1
31+
ly.Acts.AK.Gk = 0.1
3332
ly.Acts.NMDA.MgC = 1.4 // 1.4, 5 > 1.2, 0 ?
3433
ly.Acts.NMDA.Voff = 0
3534
ly.Acts.NMDA.Ge = 0.006
3635
ly.Acts.GabaB.Gk = 0.015 // 0.015 def -- makes no diff down to 0.008
3736
ly.Learn.LearnNMDA.Ge = 0.006
38-
ly.Acts.Sahp.Gbar = 0.1 //
37+
ly.Acts.Sahp.Gk = 0.1 //
3938
ly.Acts.Sahp.Off = 0.8 //
4039
ly.Acts.Sahp.Slope = 0.02 //
4140
ly.Acts.Sahp.CaTau = 10 //

sims/deepmove/params.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ var LayerParams = axon.LayerSheets{
1616
ly.Inhib.Layer.Gi = 1.0 // 1.0 > 1.1 trace
1717
ly.Learn.TrgAvgAct.SubMean = 1 // 1 > 0
1818
ly.Acts.Dend.SSGi = 2 //
19-
ly.Acts.Gbar.L = 0.2 // std
19+
ly.Acts.Gbar.L = 20 // std
2020
ly.Acts.Decay.Act = 0.0 // 0 == 0.2
2121
ly.Acts.Decay.Glong = 0.0
2222
ly.Acts.NMDA.MgC = 1.4 // 1.4, 5 > 1.2, 0 ?
2323
ly.Acts.NMDA.Voff = 0
2424
ly.Acts.NMDA.Ge = 0.006
2525
ly.Acts.GabaB.Gk = 0.015 // 0.015 def
2626
ly.Learn.LearnNMDA.Ge = 0.006
27-
ly.Acts.Mahp.Gbar = 0.04 // 0.04 == 0.05+ > 0.02 -- reduces hidden activity
28-
ly.Acts.Sahp.Gbar = 0.1 // 0.1 == 0.02 no real diff
27+
ly.Acts.Mahp.Gk = 0.04 // 0.04 == 0.05+ > 0.02 -- reduces hidden activity
28+
ly.Acts.Sahp.Gk = 0.1 // 0.1 == 0.02 no real diff
2929
ly.Acts.Sahp.Off = 0.8 //
3030
ly.Acts.Sahp.Slope = 0.02 //
3131
ly.Acts.Sahp.CaTau = 5 // 5 > 10

sims/deepmusic/params.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ var LayerParams = axon.LayerSheets{
1717
ly.Learn.TrgAvgAct.SynScaleRate = 0.005 // 0.005 best
1818
ly.Learn.TrgAvgAct.SubMean = 1 // 1 > 0
1919
ly.Acts.Dend.SSGi = 2
20-
ly.Acts.Gbar.L = 0.2 // std
20+
ly.Acts.Gbar.L = 20 // std
2121
ly.Acts.Decay.Act = 0.0 // 0 == 0.2
2222
ly.Acts.Decay.Glong = 0.0
2323
ly.Acts.NMDA.MgC = 1.4 // 1.4, 5 > 1.2, 0 ?
2424
ly.Acts.NMDA.Voff = 0
2525
ly.Acts.NMDA.Ge = 0.006
2626
ly.Acts.GabaB.Gk = 0.015 // 0.015 > 0.012 lower
27-
ly.Acts.Mahp.Gbar = 0.04 // 0.04 == 0.05+ > 0.02 -- reduces hidden activity
28-
ly.Acts.Sahp.Gbar = 0.1 // 0.1 == 0.02 no real diff
27+
ly.Acts.Mahp.Gk = 0.04 // 0.04 == 0.05+ > 0.02 -- reduces hidden activity
28+
ly.Acts.Sahp.Gk = 0.1 // 0.1 == 0.02 no real diff
2929
ly.Acts.Sahp.Off = 0.8 //
3030
ly.Acts.Sahp.Slope = 0.02 //
3131
ly.Acts.Sahp.CaTau = 5 // 5 > 10

sims/hip/params.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var LayerParams = axon.LayerSheets{
1717
// ly.Inhib.Layer.Gi = 0.2 // weak just to keep it from blowing up
1818
// ly.Inhib.Pool.Gi = 1.1
1919
// ly.Inhib.Pool.On = true
20-
// ly.Act.Gbar.L = 0.1
20+
// ly.Act.Gbar.L = 10
2121
ly.Inhib.ActAvg.Nominal = 0.05
2222
ly.Inhib.Layer.On.SetBool(false)
2323
ly.Inhib.Pool.On.SetBool(true)

sims/inhib/params.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ var LayerParams = axon.LayerSheets{
1717
ly.Inhib.ActAvg.Nominal = 0.1
1818
ly.Acts.Dt.GeTau = 5
1919
ly.Acts.Dt.GiTau = 7
20-
ly.Acts.Gbar.I = 1.0
21-
ly.Acts.Gbar.L = 0.2
20+
ly.Acts.Gbar.I = 100
21+
ly.Acts.Gbar.L = 20
2222
ly.Acts.Decay.Act = 0.0 // 0.2 def
2323
ly.Acts.Decay.Glong = 0.0 // 0.6 def
2424
ly.Acts.Noise.On.SetBool(false)
@@ -32,10 +32,10 @@ var LayerParams = axon.LayerSheets{
3232
ly.Inhib.ActAvg.Nominal = 0.5
3333
ly.Acts.Spikes.Thr = 0.5
3434
ly.Acts.Spikes.Tr = 1 // 3 def
35-
ly.Acts.Spikes.VmR = 0.4 // key for firing early, plus noise
36-
ly.Acts.Init.Vm = 0.4 // key for firing early, plus noise
37-
ly.Acts.Erev.L = 0.4 // more excitable
38-
ly.Acts.Gbar.L = 0.2 // smaller, less leaky..
35+
ly.Acts.Spikes.VmR = -60 // key for firing early, plus noise
36+
ly.Acts.Init.Vm = -60 // key for firing early, plus noise
37+
ly.Acts.Erev.L = -60 // more excitable
38+
ly.Acts.Gbar.L = 20
3939
ly.Acts.KNa.On.SetBool(false)
4040
ly.Acts.GabaB.Gk = 0 // no gabab
4141
ly.Acts.NMDA.Ge = 0 // no nmda

sims/lvis/params.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ var LayerParams = axon.LayerSheets{
3535
ly.Acts.NMDA.Ge = 0.006 // 0.006 def
3636
ly.Acts.NMDA.MgC = 1.4 // mg1, voff0, gbarexp.2, gbarr3 = better
3737
ly.Acts.NMDA.Voff = 0 // mg1, voff0 = mg1.4, voff5 w best params
38-
ly.Acts.AK.Gbar = 0.1
38+
ly.Acts.AK.Gk = 0.1
3939
ly.Acts.VGCC.Ge = 0.02 // non nmda: 0.15 good, 0.3 blows up, nmda: .02 best
4040
ly.Acts.VGCC.Ca = 25 // 25 / 10tau same as SpkVGCC
41-
ly.Acts.Mahp.Gbar = 0.01 // 0.01 > 0.02 > higher -- long run
42-
ly.Acts.Sahp.Gbar = 0.05 // was 0.1, 0.05 def
41+
ly.Acts.Mahp.Gk = 0.01 // 0.01 > 0.02 > higher -- long run
42+
ly.Acts.Sahp.Gk = 0.05 // was 0.1, 0.05 def
4343
ly.Acts.Sahp.Off = 0.8 //
4444
ly.Acts.Sahp.Slope = 0.02 //
4545
ly.Acts.Sahp.CaTau = 5 // 5 ok -- not tested

sims/neuron/neuron.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ func (ss *Sim) ConfigStats() {
390390
tsr.AppendRowInt(stat)
391391
})
392392

393-
vars := []string{"GeSyn", "Ge", "Gi", "Inet", "Vm", "Act", "Spike", "Gk", "ISI", "ISIAvg", "VmDend", "GnmdaSyn", "Gnmda", "GABAB", "GgabaB", "Gvgcc", "VgccM", "VgccH", "Gak", "MahpN", "GknaMed", "GknaSlow", "GiSyn"}
393+
vars := []string{"GeSyn", "Ge", "Gi", "Inet", "Vm", "Act", "Spike", "Gk", "ISI", "ISIAvg", "VmDend", "GnmdaSyn", "Gnmda", "GABAB", "GgabaB", "Gvgcc", "VgccM", "VgccH", "Gak", "MahpN", "GknaMed", "GknaSlow", "GiSyn", "GnmdaLrn", "VgccCa", "LearnCa"}
394394
ss.AddStat(func(mode Modes, level Levels, phase StatsPhase) {
395395
for _, name := range vars {
396396
modeDir := ss.Stats.Dir(mode.String())

sims/pfcmaint/params.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var LayerParams = axon.LayerSheets{
2727
ly.Acts.SMaint.NNeurons = 10 // higher = more activity
2828
ly.Acts.SMaint.ISI.Min = 1 // 1 sig better than 3
2929
ly.Acts.SMaint.ISI.Max = 20 // not much effect
30-
ly.Acts.SMaint.Gbar = 0.2
30+
ly.Acts.SMaint.Ge = 0.2
3131
ly.Acts.SMaint.Inhib = 1
3232
ly.Inhib.ActAvg.Nominal = 0.1
3333
ly.Inhib.Layer.Gi = 0.5

sims/pvlv/params.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ var LayerParams = axon.LayerSheets{
4040
}},
4141
{Sel: ".MatrixLayer", Doc: "all mtx",
4242
Set: func(ly *axon.LayerParams) {
43-
ly.Acts.Kir.Gbar = 2 // 10 > 5 > 2 -- key for pause
43+
ly.Acts.Kir.Gk = 2 // 10 > 5 > 2 -- key for pause
4444
ly.Learn.RLRate.On.SetBool(true) // only used for non-rew trials -- key
4545
ly.Learn.RLRate.Diff.SetBool(false)
4646
}},
@@ -58,7 +58,7 @@ var LayerParams = axon.LayerSheets{
5858
}},
5959
{Sel: "#OFCposPT", Doc: "",
6060
Set: func(ly *axon.LayerParams) {
61-
ly.Acts.SMaint.Gbar = 0.4
61+
ly.Acts.SMaint.Ge = 0.4
6262
}},
6363
{Sel: ".PTPredLayer", Doc: "",
6464
Set: func(ly *axon.LayerParams) {

0 commit comments

Comments
 (0)