-
Notifications
You must be signed in to change notification settings - Fork 1
/
params.go
245 lines (240 loc) · 8.47 KB
/
params.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
// Copyright (c) 2021, The Emergent Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import (
"github.com/emer/emergent/netparams"
"github.com/emer/emergent/params"
)
// ParamSets is the default set of parameters -- Base is always applied, and others can be optionally
// selected to apply on top of that
var ParamSets = netparams.Sets{
"Base": {
{Sel: "Layer", Desc: "using default 1 inhib for hidden layers",
Params: params.Params{
"Layer.Acts.Clamp.Ge": "1.5", // .6 was
}},
{Sel: ".SuperLayer", Desc: "",
Params: params.Params{
"Layer.Inhib.ActAvg.Nominal": "0.1",
"Layer.Inhib.Layer.On": "true",
"Layer.Inhib.Layer.Gi": "1.0",
"Layer.Inhib.Pool.Gi": "1.0",
}},
{Sel: ".CTLayer", Desc: "corticothalamic context -- using markovian copy params",
Params: params.Params{
"Layer.Inhib.ActAvg.Nominal": "0.12",
"Layer.CT.GeGain": "1.0",
"Layer.CT.DecayTau": "0",
"Layer.Inhib.Layer.Gi": "2.4",
"Layer.Inhib.Pool.Gi": "2.4",
"Layer.Acts.Decay.Act": "0.0",
"Layer.Acts.Decay.Glong": "0.0",
// "Layer.Acts.Sahp.Gbar": "0.1",
}},
{Sel: ".CTCopy", Desc: "single-step copy params",
Params: params.Params{
"Layer.Inhib.ActAvg.Nominal": "0.12",
"Layer.CT.GeGain": "1.0",
"Layer.CT.DecayTau": "0",
"Layer.Inhib.Layer.Gi": "2.0",
"Layer.Acts.NMDA.Gbar": "0.006", // std
"Layer.Acts.NMDA.Tau": "100", // std
}},
{Sel: ".CTInteg", Desc: "time integration params",
Params: params.Params{
"Layer.Inhib.ActAvg.Nominal": "0.12",
"Layer.CT.GeGain": "1.0",
"Layer.CT.DecayTau": "50",
"Layer.Inhib.Layer.Gi": "2.8",
"Layer.Acts.MaintNMDA.Gbar": "0.007", // 0.007 best, but 0.01 > lower if reg nmda weak
"Layer.Acts.MaintNMDA.Tau": "200", // 200 > 100 > 300
"Layer.Acts.NMDA.Gbar": "0.007", // 0.007 matching maint best
"Layer.Acts.NMDA.Tau": "200", // 200 > 100
}},
{Sel: ".PulvinarLayer", Desc: "",
Params: params.Params{
"Layer.Inhib.Layer.Gi": "0.8", // was 0.9 > 1.0
"Layer.Pulv.DriveScale": "0.1", // 0.1 basically same as 0.15
"Layer.Acts.Decay.Act": "0.0", // clear
"Layer.Acts.Decay.Glong": "0.0", //
"Layer.Acts.Decay.AHP": "0.0", //
"Layer.Learn.RLRate.On": "true", // beneficial for trace
"Layer.Learn.RLRate.SigmoidMin": "1",
}},
{Sel: ".Depth", Desc: "depth layers not using pool",
Params: params.Params{
"Layer.Inhib.ActAvg.Nominal": "0.1", // 0.1 eventually
"Layer.Inhib.Layer.Gi": "1.0",
}},
{Sel: "#V2WdP", Desc: "weaker inhibition for pulvinar",
Params: params.Params{
"Layer.Inhib.Layer.Gi": "0.8",
}},
{Sel: ".Fovea", Desc: "fovea has both",
Params: params.Params{
"Layer.Inhib.ActAvg.Nominal": "0.15",
"Layer.Inhib.Layer.On": "true", // layer too
"Layer.Inhib.Layer.Gi": "1",
"Layer.Inhib.Pool.On": "true",
"Layer.Inhib.Pool.Gi": "1",
}},
{Sel: ".S1S", Desc: "lower inhib, higher act",
Params: params.Params{
"Layer.Inhib.Layer.Gi": "0.9", // some weaker global inhib
"Layer.Inhib.ActAvg.Nominal": "0.3",
}},
{Sel: ".HeadDir", Desc: "",
Params: params.Params{
"Layer.Inhib.ActAvg.Nominal": "0.13", // 0.13 actual
"Layer.Inhib.Layer.Gi": "0.9",
}},
{Sel: ".MSTd", Desc: "",
Params: params.Params{
"Layer.Inhib.ActAvg.Nominal": "0.1",
"Layer.Inhib.Layer.Gi": "1.2",
}},
{Sel: "#MSTdCT", Desc: "",
Params: params.Params{
"Layer.Inhib.Layer.Gi": "2.8", // 2.0 is fine vs. higher, > lower
"Layer.CT.GeGain": "1",
"Layer.Inhib.ActAvg.Nominal": "0.05",
}},
{Sel: ".PCC", Desc: "PCC general",
Params: params.Params{
"Layer.Inhib.ActAvg.Nominal": "0.1",
}},
{Sel: "#PCC", Desc: "",
Params: params.Params{
"Layer.Inhib.ActAvg.Nominal": "0.06",
"Layer.Inhib.Layer.Gi": "0.9", // was 1.0
}},
{Sel: "#PCCCT", Desc: "",
Params: params.Params{
"Layer.Inhib.ActAvg.Nominal": "0.1",
"Layer.Inhib.Layer.Gi": "2.8",
}},
{Sel: ".S2V", Desc: "S2V general",
Params: params.Params{
"Layer.Inhib.ActAvg.Nominal": "0.1", // CT = 0.1 at end
}},
{Sel: "#S2V", Desc: "",
Params: params.Params{
"Layer.Inhib.ActAvg.Nominal": "0.08", // 0.08 actual
}},
{Sel: ".SMA", Desc: "",
Params: params.Params{
"Layer.Inhib.ActAvg.Nominal": "0.1",
}},
{Sel: "#SMA", Desc: "",
Params: params.Params{
"Layer.Inhib.ActAvg.Nominal": "0.08",
"Layer.Inhib.Layer.Gi": "0.9", // was 1.0
"Layer.Acts.Noise.On": "false", // turn on for more explore
"Layer.Acts.Noise.Ge": "0.001", // actually .001 best
"Layer.Acts.Noise.Gi": "0.001",
}},
{Sel: "#SMACT", Desc: "",
Params: params.Params{
"Layer.Inhib.ActAvg.Nominal": "0.1",
"Layer.Inhib.Layer.Gi": "2.0", // 2.0 matches prior act
"Layer.Acts.Noise.On": "false",
"Layer.Acts.Noise.Ge": "0.001",
"Layer.Acts.Noise.Gi": "0.001",
}},
{Sel: ".M1", Desc: "",
Params: params.Params{
"Layer.Inhib.ActAvg.Nominal": "0.1",
"Layer.Inhib.Layer.Gi": "1.0",
}},
{Sel: "#M1P", Desc: "m1 pulvinar",
Params: params.Params{
"Layer.Inhib.ActAvg.Nominal": "0.06",
}},
{Sel: ".Action", Desc: "",
Params: params.Params{
"Layer.Inhib.ActAvg.Nominal": "0.18", // .18 actual
}},
{Sel: "#VL", Desc: "",
Params: params.Params{
"Layer.Inhib.Layer.Gi": "1.0", // 1.2 = stronger to compete
}},
//////////////////////////////////////////////////////////
// Prjns
{Sel: "Prjn", Desc: "norm and momentum on is critical, wt bal not as much but fine",
Params: params.Params{
"Prjn.Learn.LRate.Base": "0.005", // 0.005 ok
"Prjn.SWts.Adapt.LRate": "0.0001", // 0.001 > 0.01 > 0.0001
"Prjn.SWts.Init.SPct": "1.0", // .5 ok here, 1 best for larger nets: objrec, lvis
"Prjn.Learn.Trace.Tau": "2", // 2 > 1 for many Pulv CorSims
}},
{Sel: ".BackPrjn", Desc: "top-down back-projections MUST have lower relative weight scale, otherwise network hallucinates",
Params: params.Params{
"Prjn.PrjnScale.Rel": "0.1",
}},
{Sel: ".StrongFmSMA", Desc: "stronger from SMA",
Params: params.Params{
"Prjn.PrjnScale.Rel": "0.2", // 0.5 > 1.0 > 1.5
}},
{Sel: ".CTCtxtPrjn", Desc: "all CT context prjns",
Params: params.Params{
"Prjn.Learn.LRate.Base": "0.002", // 0.002 > .005 > .001
"Prjn.Learn.Trace.Tau": "2", // late in learning 2 does best
}},
{Sel: ".CTFmSuper", Desc: "CT from main super",
Params: params.Params{
"Prjn.PrjnScale.Rel": "1",
"Prjn.Learn.Learn": "false",
"Prjn.SWts.Init.SPct": "0",
"Prjn.SWts.Init.Mean": "0.8",
"Prjn.SWts.Init.Var": "0.0",
}},
{Sel: ".FixedCTFmSuper", Desc: "non-learning CT from main super -- for CT time integ",
Params: params.Params{
"Prjn.PrjnScale.Rel": "1",
"Prjn.Learn.Learn": "false",
"Prjn.SWts.Init.SPct": "0",
"Prjn.SWts.Init.Mean": "0.8",
"Prjn.SWts.Init.Var": "0.0",
}},
{Sel: ".StrongFF", Desc: "extra strong feedforward activation",
Params: params.Params{
"Prjn.PrjnScale.Abs": "2.0",
}},
{Sel: ".FmPulv", Desc: "default for pulvinar",
Params: params.Params{
"Prjn.PrjnScale.Rel": "0.1",
}},
{Sel: ".CTToPulv", Desc: "basic main CT to pulivnar",
Params: params.Params{
"Prjn.PrjnScale.Abs": "1.0",
"Prjn.PrjnScale.Rel": "1",
}},
{Sel: ".CTSelfCtxt", Desc: "CT self context",
Params: params.Params{
"Prjn.PrjnScale.Rel": "0.5",
}},
{Sel: ".CTSelfMaint", Desc: "CT self maintenance",
Params: params.Params{
"Prjn.PrjnScale.Rel": "0.1",
}},
{Sel: "#MSTdToPCC", Desc: "extra strong feedforward activation",
Params: params.Params{
"Prjn.PrjnScale.Abs": "4.0",
}},
{Sel: "#UrgencyToVsMtxGo", Desc: "",
Params: params.Params{
"Prjn.PrjnScale.Abs": "0", // todo: not working -- no ach by time this happens! need to drive ach too.
}},
// {Sel: ".V1SC", Desc: "v1 shortcut",
// Params: params.Params{
// "Prjn.Learn.LRate.Base": "0.001", //
// "Prjn.PrjnScale.Rel": "0.5", // .5 lvis
// "Prjn.SWts.Adapt.On": "false", // seems better
// }},
// {Sel: "#S1VToS2V", Desc: "needs more",
// Params: params.Params{
// "Prjn.PrjnScale.Abs": "1.5",
// }},
},
}