Skip to content

Docs: comprehensive validation & results (#108) - #130

Merged
neuromechanist merged 2 commits into
mainfrom
docs/issue-108-validation-evidence
Jul 14, 2026
Merged

neuromechanist merged 2 commits into
mainfrom
docs/issue-108-validation-evidence

Conversation

@neuromechanist

Copy link
Copy Markdown
Member

Closes #108.

Expands docs/guides/validation.md into a complete, scannable verification-evidence page and surfaces the figures the repo already had.

What changed

  • Validation at a glance summary table: one row per validated property (score bit-exactness, sufficient statistics, single-model parity, multi-model equivalence, device/precision invariance, cross-backend LL, EEGLAB round-trip, degenerate-fit contract).
  • Source-density bit-exactness: the five pdftype families with score functions and which carry a bit-exact Fortran oracle.
  • Cross-platform device & precision invariance: two figures copied from benchmarks/figures/ into docs/assets/figures/:
    • cross-backend-equivalence-matrix.png (all 8 torch/MLX device/precision/OS combos agree at 1.000)
    • cross-backend-ic-topomaps.png (variance-ordered IC scalp maps, identical across backends)
  • Data adequacy vs k: split into channel-sweep and frame-sweep so the two tables no longer read as contradictory.
  • EEGLAB drop-in round-trip section (byte-level + loadmodout15/loadmodout reader-level).
  • Other validated behaviors table (best-iterate, c update, component sharing, outlier rejection, degenerate-fit contract).
  • Reproducing these results block.
  • Collapsed the 40-run per-run table into a ??? note for scannability.

Amari distance

Fully surfaced (single-model 0.006 in the at-a-glance table; multi-model distribution table + permutation p>0.999; per-run within/between for all 40 runs), cross-checked against .context/issue-27/amari_summary.json.

Testing

  • uv run mkdocs build --strict passes (only the unrelated Material-team MkDocs 2.0 banner)
  • All referenced scripts/figures resolve
  • Collapsible per-run table renders as a table inside <details>
  • Docs-only change; no code touched.

Restructure guides/validation.md into a full evidence page: at-a-glance
summary table, source-density bit-exactness table, cross-platform
device/precision invariance (phase3 equivalence matrix + IC topomaps),
EEGLAB drop-in round-trip, and an other-validated-behaviors table.
Collapse the 40-run per-run table for scannability. Amari-distance
figures cross-checked against amari_summary.json. Builds under
mkdocs build --strict.
@neuromechanist neuromechanist linked an issue Jul 14, 2026 that may be closed by this pull request
Scope source-density bit-exactness to the non-GG families (the default
GG has no literal Fortran oracle; validated by single-model parity),
fix two test-path citations to include the pyAMICA/ prefix, reconcile
the two k=30/70ch rows (different backend sets), define IC/LL before
first use, expand ZCA, and drop the unused EM abbreviation.
@neuromechanist

Copy link
Copy Markdown
Member Author

PR review (pr-review-toolkit, reviewers on Sonnet)

Docs-only change, so two applicable reviewers ran in parallel: code-reviewer (factual accuracy of every claim vs source evidence) and comment-analyzer (prose accuracy/clarity). The code-focused agents (silent-failure, type-design, test-analyzer, simplifier) do not apply to a Markdown change.

Factual accuracy: clean

Every number, table, figure caption, and cross-reference was verified against its source of truth and matched exactly:

  • Multi-model correlation + Amari distribution means/SDs/ranges and permutation p-values vs .context/issue-27/amari_summary.json (corr p=0.9576 -> "0.96"; Amari p=0.9999 -> ">0.999").
  • Channel-sweep and frame-sweep k tables vs .context/issue-84/phase3_decomp_equivalence.md and .context/issue-90/ksweep_findings.md.
  • Source-density score functions and the <1e-12 bound vs test_ng_pdf_families.py.
  • EEGLAB round-trip claims vs test_amica_ng_wrapper.py / write_amicaout.
  • Consistency with paper.md Table 1/Table 2. Both new figures checked pixel-by-pixel against their captions.

Findings addressed (commit e961388)

  1. Overclaim (important): "every fixed family is bit-exact" overreached, the default generalized Gaussian has no literal Fortran oracle (the parity test parametrizes codes 2/3/4/1 only) and is validated by single-model parity. Scoped the topic sentence and the at-a-glance row to the non-GG families; the density table already recorded this per row.
  2. Dead references: two test-path citations were missing the pyAMICA/ prefix. Fixed (and the bare-filename "Tests" list now carries its directory).
  3. Apparent contradiction: the two k=30 / 70ch rows (0.898 vs 0.929) now carry an explicit note that they average different backend sets (hardest MLX-vs-Fortran pair vs the Fortran+CUDA cluster).
  4. Abbreviations: IC/LL are now defined before first use; ZCA is expanded on first use; the unused EM abbreviation was dropped.

No further findings at confidence >=80. mkdocs build --strict passes.

@neuromechanist
neuromechanist merged commit e5016c4 into main Jul 14, 2026
1 check passed
@neuromechanist
neuromechanist deleted the docs/issue-108-validation-evidence branch July 14, 2026 17:02
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.

Docs: comprehensive validation & results section

1 participant