Skip to content

HVC intro notes before each motif; retrain - #18

Merged
jmxpearson merged 1 commit into
mainfrom
hvc-intro-notes
Oct 23, 2026
Merged

jmxpearson merged 1 commit into
mainfrom
hvc-intro-notes

Conversation

@jmxpearson

Copy link
Copy Markdown
Member

Removes most of the start-of-motif transient.

Cause. E fired at ~5 Hz through the first 60 ms of every motif, against 2.5 Hz later, because the HVC-driven inhibition only switches on at motif onset: I fires at ~17 Hz in the first 30 ms vs 33 Hz later. A silent burn-in doesn't help, and the bump appears with HVC alone and no sound.

Change.

  • Two 80 ms introductory notes of HVC activity, with no sound and 20 ms gaps (HVC_INTRO = (2, 80, 20)), precede each motif in training, evaluation and the figures.
  • They're passed to fit/transform as hvc_prelude, so the returned spikes and every index stay aligned to the motif, and the figures show only the motif.
  • No learning happens during them; the STDP gate needs sound.
  • --hvc-intro NOTES MS GAP on sven-train-ven, sven-evaluate and sven-figure. A model that records its stimuli but no intro notes is evaluated without them.

Effect (retrained, 10 seeds):

before after
E, first 60 ms of trained song 4.96 Hz 3.61 Hz
peak (5 ms bin) 11.9 Hz 7.1 Hz
E, 100–800 ms 2.52 Hz 2.50 Hz
reversed/trained 1.174 1.175
DAF metrics — all within 10-seed noise

Artifacts. Retrained ven_model.npz, and a pure-defaults run reproduces it byte-for-byte; MANIFEST.sha256 updated. The slow-test pins and 3-SD tolerances, the README table, MODEL.md and the design notes are updated. 206 tests pass; ruff clean.

finchsim. Its AIV pipeline builds its own HVC stub without intro notes, and is still pinned to the old model and commit, so it's unaffected until it next upgrades.

🤖 Generated with Claude Code

E fired at ~5 Hz through the first 60 ms of every motif (2.5 Hz later)
because the HVC-driven inhibition only switches on at motif onset; a silent
burn-in does not help. Two 80 ms introductory notes of HVC activity, no
sound, 20 ms gaps (HVC_INTRO = (2, 80, 20)), now precede each motif in
training, evaluation and the figures, passed to fit/transform as
hvc_prelude so the returned spikes and every index stay motif-aligned.

- Onset bump 4.96 -> 3.61 Hz (peak 11.9 -> 7.1 Hz); every DAF metric and
  the cancellation ratio are within their 10-seed noise.
- The model's stimulus record carries hvc_intro; a model that records its
  stimuli but not intro notes is evaluated without them.
- sven-train-ven / sven-evaluate / sven-figure: --hvc-intro NOTES MS GAP.
- Retrained (pure-defaults run reproduces it byte-for-byte); slow-test pins
  and 3-SD tolerances, README table, MODEL.md and design notes updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jmxpearson
jmxpearson merged commit 52e8ebf into main Oct 23, 2026
2 checks passed
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.

1 participant