Skip to content

Commit

Permalink
set OFCposPT
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoreilly committed Nov 26, 2024
1 parent e64e931 commit 4e9bf0c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions axon/act-layer.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions axon/act-layer.goal
Original file line number Diff line number Diff line change
Expand Up @@ -1063,8 +1063,8 @@ func (ly *LayerParams) PlusPhasePost(ctx *Context) {
hasRew := (GlobalScalars[GvHasRew, di] > 0)
giveUp := (GlobalScalars[GvGiveUp, di] > 0)
if hasRew || giveUp {
ly.DecayState(ctx, di, 1, 1, 1) // note: GPU will get, and GBuf are auto-cleared in NewState
for spi := uint32(0); spi < np; spi++ { // also clear the pool stats: GoalMaint depends on these..
ly.DecayState(ctx, di, 1, 1, 1)
for spi := uint32(0); spi < np; spi++ {
pi := ly.PoolIndex(spi)
PoolAvgMaxZero(pi, di)
}
Expand Down
1 change: 1 addition & 0 deletions axon/learn-net.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion axon/learn-net.goal
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ func (nt *Network) DWtToWt() {
RunDWtFromDiSyn(int(nix.NSyns))
RunDWtSubMeanPath(int(nix.NPaths))
RunWtFromDWtSyn(int(nix.NSyns))
RunDoneSynapses()
RunDoneSynapses()
// RunDone() // sig faster
if ctx.SlowInc() {
nt.SlowAdapt()
ToGPUSynapses()
Expand Down
5 changes: 4 additions & 1 deletion axon/rubicon-net.go
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,10 @@ func (nt *Network) AddOFCpos(ctx *Context, nUSs, nY, ofcY, ofcX int, space float
ofcPT.AddDefaultParams(func(ly *LayerParams) { ly.Inhib.ActAvg.Nominal = 0.02 })
ofcPT.AddDefaultParams(func(ly *LayerParams) { ly.Inhib.Pool.On.SetBool(true) })
// ofcPT.AddDefaultParams(func(ly *LayerParams) { ly.Inhib.Pool.Gi = 2.0 })
ofcPT.AddDefaultParams(func(ly *LayerParams) { ly.Acts.Dend.ModACh.SetBool(true) })
ofcPT.AddDefaultParams(func(ly *LayerParams) {
ly.Acts.Dend.ModACh.SetBool(true)
ly.CT.OFCposPT.SetBool(true)
})
ofcPTp.AddDefaultParams(func(ly *LayerParams) { ly.Inhib.Pool.Gi = 1.0 })
ofcPTp.AddDefaultParams(func(ly *LayerParams) { ly.Inhib.ActAvg.Nominal = 0.1 })

Expand Down

0 comments on commit 4e9bf0c

Please sign in to comment.