Skip to content

hip: add controllable 50% DG lesion during AC training#56

Draft
Copilot wants to merge 4 commits intomainfrom
copilot/edit-objrec-change-stimuli
Draft

hip: add controllable 50% DG lesion during AC training#56
Copilot wants to merge 4 commits intomainfrom
copilot/edit-objrec-change-stimuli

Conversation

Copy link
Copy Markdown

Copilot AI commented Mar 15, 2026

Adds a DGLesion toggle to the hippocampus sim (ch7/hip) that lesions 50% of DG (dentate gyrus) neurons before AC list training and restores the layer at the start of each new AB run.

Changes

  • Sim.DGLesion bool — new exported field; automatically surfaces as a checkbox in the Cogent Core control panel with no extra widget wiring
  • AB→AC transition (TestAtInterval) — when the training env flips from TrainAB to TrainAC, calls LesionNeurons(0.5) on DG if the flag is set
  • NewRun() — unconditionally calls UnLesionNeurons() on DG before InitWeights(), so every AB training run starts with a fully intact DG regardless of the previous run's lesion state
// in TestAtInterval, at the AB→AC switch point:
if ss.DGLesion {
    ss.Net.LayerByName("DG").LesionNeurons(0.5)
}

// in NewRun(), before InitWeights:
ss.Net.LayerByName("DG").UnLesionNeurons()

💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.

…t objects)

Co-authored-by: frankmj <915860+frankmj@users.noreply.github.com>
Copilot AI changed the title [WIP] Edit objrec project to change the stimuli objrec: extend stimuli set from 20 to 25 LED patterns Mar 15, 2026
Copilot AI requested a review from frankmj March 15, 2026 16:21
Co-authored-by: frankmj <915860+frankmj@users.noreply.github.com>
Copilot AI changed the title objrec: extend stimuli set from 20 to 25 LED patterns objrec: extend stimuli to 25 patterns + add local run docs Mar 15, 2026
Co-authored-by: frankmj <915860+frankmj@users.noreply.github.com>
Copilot AI changed the title objrec: extend stimuli to 25 patterns + add local run docs hip: add controllable 50% DG lesion during AC training Mar 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants