Skip to content

Commit

Permalink
save and restore tab in init stats
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoreilly committed Nov 17, 2024
1 parent a85ba5b commit 2cf3eef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion examples/ra25/ra25.go

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

4 changes: 3 additions & 1 deletion examples/ra25/ra25.goal
Original file line number Diff line number Diff line change
Expand Up @@ -607,9 +607,11 @@ func (ss *Sim) InitStats() {
}
}
if ss.GUI.Tabs != nil {
_, idx := ss.GUI.Tabs.CurrentTab()
ss.GUI.Tabs.PlotDataFS(ss.StatsData(Train, Epoch))
ss.GUI.Tabs.PlotDataFS(ss.StatsData(Train, Run))
ss.GUI.Tabs.PlotDataFS(ss.StatsData(Test, Trial))
ss.GUI.Tabs.SelectTabIndex(idx)
}
}

Expand Down Expand Up @@ -827,8 +829,8 @@ func (ss *Sim) ConfigGUI() {

ss.GUI.UpdateFiles()
ss.InitStats()
ss.GUI.Tabs.SelectTabByName("Network")
ss.GUI.FinalizeGUI(false)

// if ss.Config.Run.GPU {
// // vgpu.Debug = ss.Config.Debug // when debugging GPU..
// ss.Net.ConfigGPUnoGUI(&ss.Context) // must happen after gui or no gui
Expand Down

0 comments on commit 2cf3eef

Please sign in to comment.