You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
matplotlib-based visualizations, a fresh design rather than a port of
postAmicaUtility's MATLAB/EEGLAB GUI plumbing:
PMI heatmap (component-reordered via Phase 2's block-diagonal ordering),
one panel per model.
Scalp topography + generalized-Gaussian mixture PDF overlay per component
(pyAMICA already exposes alpha/mu/sbeta/rho, a natural fit --
equivalent in spirit to postAmicaUtility's pop_topohistplot.m).
Multi-model posterior-probability timeline (equivalent in spirit to modprobplot.m).
Out of scope: general scrolling EEG viewers, ERP-conditioning plots, and other
non-AMICA-specific GUI utilities from postAmicaUtility.
Scope reduced during implementation: this phase ships two of the three planned plots. The scalp-topography plot (plot_topo_pdf) is deferred to #159.
Shipped, both verified against the MATLAB reference (PR #158):
plot_pmi_heatmap — components-by-components pairwise MI, block-diagonally reordered. Our clean-room pairwise_mi matches the GPL minfojp at r=0.9887 on identical signals.
plot_model_probability — the modprobplot equivalent. Smoothed model probability matches smooth_amica_prob at r=0.9886 (1 s) / 0.9594 (5 s); P(model|data) matches LLt2v to 1.4e-14; v is bit-exact vs loadmodout15.m. Visual gate accepted.
Deferred to #159: plot_topo_pdf needs source activations from a loaded AmicaOutput, which rests on an unsettled W convention — loadmodout's W does not reproduce the live model's transform() sources at high fidelity under either orientation, even single-model with c identically zero (mean |corr| 0.877 / 0.932, 0/32 above 0.999). It is also the only one of the three with no MATLAB oracle, since pop_topohistplot is broken upstream. Rather than ship a plot that renders plausibly but cannot be verified, it was cut.
Bonus, from chasing that: a real pre-existing bug in numpy_impl/pdf.py (gammaln where the generalized Gaussian needs gamma, making the density negative for every rho outside the special-cased 1 and 2 — including the default rho0=1.5). Fixed in #158; it also repairs the shipped numpy_impl/viz.py: plot_pdf_fits. The fit path was never affected.
Also closed a Phase 1 gap along the way: mir() had only ever been validated against itself. The Apache-2.0 original getMIR.m was always available, and running it gives agreement to 1.7e-15.
Done in PR #158, squash-merged into the epic branch feature/issue-133-epic-mir-pmi-metrics (c77de91). Closing manually: the PR targeted the epic branch rather than the default branch, so GitHub's auto-close on merge did not fire. Ships to main with epic #133.
Shipped two of the three planned plots, both MATLAB-verified. plot_topo_pdf is deferred to #159, which turned out to be a real loader bug rather than a design question.
Activity
[-]Phase 3: MIR/PMI visualizations[/-][+]Phase 4: MIR/PMI visualizations[/+]Assert heatmap pixels, not just tick labels
neuromechanist commentedon Jul 17, 2026
Scope reduced during implementation: this phase ships two of the three planned plots. The scalp-topography plot (
plot_topo_pdf) is deferred to #159.Shipped, both verified against the MATLAB reference (PR #158):
plot_pmi_heatmap— components-by-components pairwise MI, block-diagonally reordered. Our clean-roompairwise_mimatches the GPLminfojpat r=0.9887 on identical signals.plot_model_probability— themodprobplotequivalent. Smoothed model probability matchessmooth_amica_probat r=0.9886 (1 s) / 0.9594 (5 s);P(model|data)matchesLLt2vto 1.4e-14;vis bit-exact vsloadmodout15.m. Visual gate accepted.Deferred to #159:
plot_topo_pdfneeds source activations from a loadedAmicaOutput, which rests on an unsettledWconvention —loadmodout'sWdoes not reproduce the live model'stransform()sources at high fidelity under either orientation, even single-model withcidentically zero (mean |corr| 0.877 / 0.932, 0/32 above 0.999). It is also the only one of the three with no MATLAB oracle, sincepop_topohistplotis broken upstream. Rather than ship a plot that renders plausibly but cannot be verified, it was cut.Bonus, from chasing that: a real pre-existing bug in
numpy_impl/pdf.py(gammalnwhere the generalized Gaussian needsgamma, making the density negative for everyrhooutside the special-cased 1 and 2 — including the defaultrho0=1.5). Fixed in #158; it also repairs the shippednumpy_impl/viz.py: plot_pdf_fits. The fit path was never affected.Also closed a Phase 1 gap along the way:
mir()had only ever been validated against itself. The Apache-2.0 originalgetMIR.mwas always available, and running it gives agreement to 1.7e-15.Phase 4: MIR/PMI visualizations (PMI heatmap + model-probability time…
neuromechanist commentedon Jul 17, 2026
Done in PR #158, squash-merged into the epic branch
feature/issue-133-epic-mir-pmi-metrics(c77de91). Closing manually: the PR targeted the epic branch rather than the default branch, so GitHub's auto-close on merge did not fire. Ships to main with epic #133.Shipped two of the three planned plots, both MATLAB-verified.
plot_topo_pdfis deferred to #159, which turned out to be a real loader bug rather than a design question.