Skip to content

Commit

Permalink
set testing flag on viewupdate; rename TD names -- don't need Rew
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoreilly committed Oct 25, 2024
1 parent 53cd681 commit 2870cfd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions axon/looper.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ func LooperUpdateNetView(man *looper.Manager, viewupdt *netview.ViewUpdate, net
if curTime != etime.Cycle {
loop.OnEnd.Add("GUI:UpdateNetView", func() {
ctrUpdateFunc(curTime)
viewupdt.Testing = m == etime.Test
viewupdt.UpdateTime(curTime)
})
}
Expand All @@ -142,6 +143,7 @@ func LooperUpdateNetView(man *looper.Manager, viewupdt *netview.ViewUpdate, net
cycLoop.OnEnd.Add("GUI:UpdateNetView", func() {
cyc := cycLoop.Counter.Cur
ctrUpdateFunc(etime.Cycle)
viewupdt.Testing = m == etime.Test
viewupdt.UpdateCycle(cyc)
})
}
Expand Down
2 changes: 1 addition & 1 deletion axon/pathparams.go

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

2 changes: 1 addition & 1 deletion axon/pathparams.goal
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ func (pt *PathParams) DWtSynRWPred(ctx *Context, syni, si, ri, di uint32, layPoo
}

// DWtSynTDPred computes the weight change (learning) at given synapse,
// for the TDRewPredPath type
// for the TDPredPath type
func (pt *PathParams) DWtSynTDPred(ctx *Context, syni, si, ri, di uint32, layPool, subPool *Pool) {
// todo: move all of this into rn.RLRate
lda := GlobalScalars[GvDA, di]
Expand Down
2 changes: 1 addition & 1 deletion axon/rl_net.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func (nt *Network) AddClampDaLayer(name string) *Layer {
}

// AddTDLayers adds the standard TD temporal differences layers, generating a DA signal.
// Pathway from Rew to RewInteg is given class TDRewToInteg -- should
// Pathway from Rew to RewInteg is given class TDToInteg -- should
// have no learning and 1 weight.
func (nt *Network) AddTDLayers(prefix string, rel relpos.Relations, space float32) (rew, rp, ri, td *Layer) {
rew = nt.AddRewLayer(prefix + "Rew")
Expand Down

0 comments on commit 2870cfd

Please sign in to comment.