Skip to content

Commit

Permalink
updating plots
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoreilly committed Nov 16, 2024
1 parent a06e5de commit b53075e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion examples/ra25/ra25.go

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

6 changes: 5 additions & 1 deletion examples/ra25/ra25.goal
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,10 @@ func (ss *Sim) RunStats(lmode Modes, ltime Times, lphase StatsPhase) {
for _, sf := range ss.StatFuncs {
sf(lmode, ltime, lphase)
}
if lphase == Step && ss.GUI.Tabs != nil {
nm := lmode.String() + "/" + ltime.String() + " Plot"
ss.GUI.Tabs.GoUpdatePlot(nm)
}
}

func (ss *Sim) InitStats() {
Expand Down Expand Up @@ -743,7 +747,7 @@ func (ss *Sim) ConfigStats() {
case Trial:
out := ss.Net.LayerByName("Output")
for di := range ndata {
stat := float64(axon.LayerStates[axon.LayerPhaseDiff, out.Index, di])
stat := 1.0 - float64(axon.LayerStates[axon.LayerPhaseDiff, out.Index, di])
datafs.Value[float64](ss.Current, name, ndata).SetFloat1D(stat, di)
tsr.AppendRowFloat(stat)
}
Expand Down

0 comments on commit b53075e

Please sign in to comment.