Repository navigation
Description
Final documentation audit for epic #324, running alongside the parity re-measurement in #351.
Epic #324 changed much more than it set out to. Besides the MLX surface (#323, #304, #313, #306, #315), it changed how every backend fits by default:
- component-row
doscaling(doscaling normalizes stored columns, not components (all backends) #333) - component-row storage and correct sharing (share_comps compares and merges the wrong vectors (all backends) #334)
- 1-based schedule gates (Newton appears to start one iteration late (0- vs 1-based newt_start) #335)
- the sphere written column-major (EEGLAB export writes an asymmetric sphere transposed #336)
- the reference's iteration order and A-freeze (Apply the LL-decrease response before the update #339, Freeze A on the reference's schedule without sharing #345)
- a normalized initial mixing matrix (Normalize the drawn initial mixing matrix #341)
- single-precision density constants (Use the reference's single-precision density constants #344)
- strict NumPy options (AMICA_NumPy silently ignores unknown options #346)
Each phase updated the docs it touched. This issue checks that the docs as a whole describe the finished code, and cleans up what the phases left behind.
Scope
-
Every user-facing page matches the code. Cover
docs/(concepts, guides, API, getting started, development),README.md, and the public docstrings ofAMICA,AMICAICA,AMICATorchNG,AMICAMLXNG,AMICA_NumPyandAMICANative. Check that:- parameter lists, defaults and backend support agree with the constructors;
- stop reasons and the degenerate-fit contract are current;
- params-file support is described for every backend;
- backend selection through the wrappers is documented.
-
The concept pages describe the reference's per-iteration order:
- E-step first, then the checks and the log-likelihood-decrease response;
- the exit before the update, then the update;
- the A-freeze windows, and
doscalingof component rows.
Fix statements that are no longer true, such as "each EM iteration increases the log-likelihood". Check the algorithm-flow figure against the new order.
-
Coherence across pages. Check the summary table in
docs/guides/amica-differences.md(row numbers and cross-references),docs/guides/validation.md,docs/guides/backends.md, and the changelog's Unreleased section. The changelog should have one coherent account of the behavior changes, including the fact that default trajectories differ from 0.3.3 and why. -
Delete the dead legacy code in
pamica/numpy_impl/pdf.py:choose_pdf_type, which has no callers, and the unreachable legacy pdftype 2-4 branches ofcompute_pdf. Delete any tests that exist only for them. -
AGENTS.md:
- Add the shared modules (
rank.py,schedule.py,component_layout.py,initialization.py,reference_constants.py,params_filereader) to the architecture map. - Bring the status and known-issues prose up to date.
- Do the same in
.context/progress_summary.mdand.context/plan.md.
- Add the shared modules (
-
The docs site builds cleanly, and every internal link and anchor resolves.
Parity figures (validation rows, Table 1, ADR 0003 keep_best figures, share_comps merge counts) are re-measured in #351, which owns them and paper.md; this issue leaves the numbers to it.
Part of epic #324.
Activity