Skip to content

probability-encoding: NengoGUI demo for the GMM population mode - #1341

Open
celiasmith wants to merge 1 commit into
mainfrom
probability-encoding-gmm-gui
Open

probability-encoding: NengoGUI demo for the GMM population mode#1341
celiasmith wants to merge 1 commit into
mainfrom
probability-encoding-gmm-gui

Conversation

@celiasmith

Copy link
Copy Markdown
Collaborator

Summary

Adds a small NengoGUI-friendly demo to the existing probability-encoding submission, wrapping cell 22 of Furlong's Probability Encodings — Spiking Implementation notebook in the v0.2.0 ProbabilityEncoder class.

The new script (examples/nengogui/gmm_population.py) draws 500 samples from a 2-component 1-D GMM, builds the ProbabilityEncoder in population mode (one neuron per query point on the input domain, with encoders set to the SSPs of those points), and drives the ensemble with the trained mean SSP mu. Each neuron's firing rate then traces the GMM density at the query point its encoder corresponds to.

Opens in NengoGUI with:

pip install nengo-gui
PYTHONPATH=src nengo examples/nengogui/gmm_population.py

Metadata gains a nengogui: block pointing at the new script so the site can award the nengogui-ready badge.

Patch-bump 0.1.0 → 0.1.1 (purely additive — no API changes; the existing entry_point, library, and tests are untouched).

Test plan

  • python tools/validate_submission.py submissions/probability-encoding → PASS
  • Script imports + builds the model cleanly; 50 ms sim runs in <1 s
  • Existing tests still pass (no code in src/ changed)

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant