Conversation
….proj New ch8/bg_action/ package implementing a biologically realistic BG model for the Probabilistic Selection task with: - Full BG circuit: Go/NoGo, GPe, GPi, Thalamus, PMC, SNc - Action selection via disinhibitory gating with cortical noise - DA-modulated Go/NoGo learning (D1/D2 rules) - Probabilistic reward delivery (80/20, 60/40) - PD simulation via SNc unit reduction - D2 agonist simulation - Training/testing loops with logging and GUI
…bability comments
Copilot created this pull request from a session on behalf of
frankmj
June 4, 2026 15:08
View session
Copilot stopped work on behalf of
frankmj due to an error
June 4, 2026 15:35
Copilot
AI
changed the title
Add BG action selection simulation (BG_4s_inhib_PS_e7a.proj conversion)
Fix emergent/leabra version incompatibility in ch8/bg_action
Jun 4, 2026
Copilot
AI
changed the title
Fix emergent/leabra version incompatibility in ch8/bg_action
Add cycle-by-cycle stepping and view updates for bg_action simulation
Jun 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The bg_action sim only updated the network view once per trial (after settling), making it impossible to observe activity dynamics within a trial. Additionally, the toolbar lacked stepping controls for interactive exploration.
Changes
AlphaCyc(): The inner cycle loop now conditionally callsUpdateView()based on a configurableTrainUpdt/TestUpdttime scale (Cycle,FastSpike,Quarter,Phase,AlphaCycle)ViewOn,TrainUpdt,TestUpdt— exposed in the GUI struct view so users can control update granularity at runtime. Defaults toleabra.CycleStep Trial,Step Epoch,Test Trialwith properUpdateFunccallbacks for enable/disable state trackingStopped()method: Toolbar buttons now correctly reflect running state viaStopped()pattern (matching other sims in this repo)emergentfrom v1.4.31 to v1.3.53 — leabra v1.2.10 requires emergent v1.3.x (the v1.4.x series introduced breaking API changes toemer.Layer)Usage
Set
TrainUpdtorTestUpdttoCycle(default), then click Step Trial to watch activities settle cycle-by-cycle in the NetView. Set toAlphaCyclefor faster batch runs.